Suspense
Unanswered
Gray-breasted Martin posted this in #help-forum
Gray-breasted MartinOP
Tried to use React suspense.
I placed use effect in the component of fallback with a simple console log in it.
It never prints, it seems the code is only executed in the server and never client.
The only way I made is log in the client is add alert in the component.
I also tried an if check if the window is undefined but still doesn't work and also returns 500 in the network tab.
I placed use effect in the component of fallback with a simple console log in it.
It never prints, it seems the code is only executed in the server and never client.
The only way I made is log in the client is add alert in the component.
I also tried an if check if the window is undefined but still doesn't work and also returns 500 in the network tab.