#Are Layout's rendered serverside?
1 messages · Page 1 of 1 (latest)
i added "use client"; to the hook file and i think it works now ? this should be documented IMO
no it doesnt work, it was the react refresh making it seem like it works, the error persists when i f5
https://reactrouter.com/how-to/spa#important-note
React Router will still server render your index route to generate that index.html file. This is why your project still needs a dependency on @react-router/node and your routes need to be SSR-safe. That means you can't call window or other browser-only APIs during the initial render, even when server rendering is disabled.
Correct.