Why not use useCallback with empty dependency instead of create new useMemoizedFn hook? #2344
nanghadiios
started this conversation in
General
Replies: 1 comment
-
See:
After the above changes, the usage of I hope this answer can help you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After researching about
useMemoizedFn
hook in ahooks, I have a question that needs to be explained, why not useuseCallback
with empty dependency for persistent functions?ex:
Beta Was this translation helpful? Give feedback.
All reactions