News for hackers. Stuff that matters.
Re:Algebraic Effects for React Developers by iaml on Monday November 02, 2020 @10:27AM (#24969081)
You can set breakpoint inside useEffect and it will work as expected, you can use something like

if (somevar === 42) debugger;

and you'll see all of the internal call stack and all variables in scope. moreover you can use the console to evaluate your code. Worth mentioning 99% of strange issues in react (in my experience) are caused by mutation or not declaring all deps in hooks.

There are no comments on this comment yet.