react-async-hook icon indicating copy to clipboard operation
react-async-hook copied to clipboard

remove useCallbacks calls on useAsyncState

Open fauzanrh opened this issue 3 years ago • 0 comments

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.

fauzanrh avatar Oct 27 '22 11:10 fauzanrh