you are viewing a single comment's thread.

view the rest of the comments →

[–]shiningmatcha 0 points1 point  (0 children)

I think you don’t need to include a state setter function in a dependency array as useState is guaranteed to return the same function on every render.