Using Show with createRouteData / useRouteDat
Currently have a project setup with SolidStart, renderStream, and using createRouteData and useRouteData, my issue comes in when I want to use <Show>, I was using this on my original project which was using createResource but since I'm porting to SolidStart I figured I'd use their APIs, and now I'm getting a Hydration issue if I try to use <Show> but works fine if I just use <Suspense>
3 Replies
but since I'm porting to SolidStart I figured I'd use their APIsSuspense works in-browser and on server it's made exactly for these kind of stuff
https://www.youtube.com/watch?v=oQ1zn7cdtyU&t=16s is a nice lecture on suspense and how it works as a glue between client and server
Future Frontend
YouTube
Ryan Carniato - SolidJS: Why all the Suspense?
In this talk Ryan discusses SolidJS and its relationship with React's Suspense.
Slides: https://docs.google.com/presentation/d/1NoJtBdpf13noV-4MebYMZkhJhWn4Y79-7f00SlSCAmc
Ahhhh that makes a whole lot more sense
I never considered that I needed to suspend both client and server which explains the suspense use case, thanks for that explanation