Closed moonmeister closed 3 years ago
seems I need a different router for SSR
why would you be SSR'ing authenticated content? (if this was about what you asked about in voice chat)
Right, How would I not SSR it? I added the router to a page in pages
and it threw this error. My assumption was it'd SSR the root page but not the client side route I just defined.
the short version is useEffect
(which doesn't run on the server) or <Suspense/>
+ lazy
. These are the same ways you'd do it in React.
here is an example from the @toastdotdev/mdx
package.
I've added this to the list of docs that needs to be created in #10
closing this since it has a solution and an issue for docs (https://github.com/toastdotdev/toast/issues/10)
For anyone landing here looking for "SRR wrapper modifications" https://github.com/toastdotdev/toast/issues/49 is probably the issue to follow
Error
Stack trace
Metadata