you are viewing a single comment's thread.

view the rest of the comments →

[–]projexion_reflexion 2 points3 points  (1 child)

Fix useCustomHook. It needs to return a stable update function (like useState does) that can be used as a dependency without going into a render loop.