You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useMemoOne is really handy! Thanks for making it! I just have a few questions about useCallbackOne: The React hooks API docs quoted in the readme specifically explain that useMemo should not be relied on for semantic guarantee, but I don't see anything like that for useCallback. Do you have additional info regarding this?
Also, since useMemoOne is intended to be used to create arbitrary values which are stable across re-renders, why provide useCallbackOne at all?
The text was updated successfully, but these errors were encountered:
rimunroe
changed the title
Why provide useCallback?
Why provide useCallbackOne?
Aug 7, 2019
useMemoOne
is really handy! Thanks for making it! I just have a few questions aboutuseCallbackOne
: The React hooks API docs quoted in the readme specifically explain thatuseMemo
should not be relied on for semantic guarantee, but I don't see anything like that foruseCallback
. Do you have additional info regarding this?Also, since
useMemoOne
is intended to be used to create arbitrary values which are stable across re-renders, why provideuseCallbackOne
at all?The text was updated successfully, but these errors were encountered: