[docs] useMemoizedFn cannot replace useCallback when functions called during render #2341
MeetzhDing
started this conversation in
General
Replies: 1 comment
Nice catch! I will add this situation to the docs, thx. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In the document: useMemoizedFn
But according react rfcs useEvent, a memoized function may case error in rendering, e.g. not rerender as expected.
I suggested to declare this situation in the document.
All reactions