Replies: 1 comment
-
Yes, it's safe. It's created outside render and thus stable. |
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
-
Hi,
is it safe to use a seter function as a dependency when using an useEffect hook?
Or is it generating a rendering loop, because of the changing function handles on every render?
Something like (from the examples):
thx,
cheers
Beta Was this translation helpful? Give feedback.
All reactions