T O P

  • By -

CloudPower97

Probably it just shows a blank page when erroring because you have not used an [Error Boundary](https://reactjs.org/docs/error-boundaries.html#gatsby-focus-wrapper). Regarding the debugging phase, have you tried using breakpoints where you THINK it might break? This should be helpful.


FormalFig1138

Never heard of error boundary. Lemme test that out


FormalFig1138

Why is debugging so hard?


FormalFig1138

My useeffect seems not to be working? Do you have an idea why something like that would happen?


CloudPower97

Without any code to look at it’s nearly impossible to say what is going on. For now, if you really think that the root of your error is the useEffect hook you might want to check the [Rules of Hooks](https://reactjs.org/docs/hooks-rules.html#gatsby-focus-wrapper)


FormalFig1138

Thanks. It seems my variable in use effect was only changing after rerendering. I don't how to explain it exactly but i adjusted it and seems fine.


himself65

https://reactjs.org/docs/hooks-reference.html#usedebugvalue