use-state-with-callback
use-state-with-callback copied to clipboard
Async Callback provided within a callback doesn't get executed : fixe…
- Added Type condition while executing the callback function in the useEffect.
- Removed null assignment to the callbackRef.current as it gets undefined when no function is found in the parameter of setValueWithCallback