S
SolidJSβ€’9mo ago
davedbase

How do you disable SSR on a specific route/part of a route?

Is there a way to mark a whole route or at least a portion of a route as being client only? I know there's syntax that allows something similar to use but finding documentation on it has been tricky. Halp? πŸ™‚
4 Replies
apollo79
apollo79β€’9mo ago
solid-start exports an unstable_clientOnly function which you can use like the lazy fn from solid
davedbase
davedbaseβ€’9mo ago
That's the one I was looking for πŸ™‚ I hadn't paid attention but has Ryan mentioned changes to this at all? Will it be around in the future? There was some talk about use client but I missed the context of it.
thetarnav
thetarnavβ€’9mo ago
ClientOnly is just a wrapper around lazy, Suspense and onMount, it’ll be around even if the api gets removed
davedbase
davedbaseβ€’9mo ago
Thanks folks. We really need this documented haha