react-async-hook
react-async-hook copied to clipboard
remove useCallbacks calls on useAsyncState
from: https://reactjs.org/docs/hooks-reference.html#usestate 's Note.
React guarantees that setState function identity is stable and won’t change on re-renders. This is why it’s safe to omit from the useEffect or useCallback dependency list.