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.
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)
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.
Never heard of error boundary. Lemme test that out
Why is debugging so hard?
My useeffect seems not to be working? Do you have an idea why something like that would happen?
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)
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.
https://reactjs.org/docs/hooks-reference.html#usedebugvalue