const debouncedOnChangeText = useCallback(_.debounce(onChangeText, 150), [])
Calls the onChangeText handler only every 150ms, without recreating it over and over.
const debouncedOnChangeText = useCallback(_.debounce(onChangeText, 150), [])
Calls the onChangeText handler only every 150ms, without recreating it over and over.