S
SolidJS•7mo ago
Christian

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
bigmistqke 🌈
bigmistqke 🌈•7mo ago
but since I'm porting to SolidStart I figured I'd use their APIs
Suspense works in-browser and on server it's made exactly for these kind of stuff
bigmistqke 🌈
bigmistqke 🌈•7mo ago
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
Christian
Christian•7mo ago
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
Want results from more Discord servers?
Add your server
More Posts
1. arguments to useTransition() 2. measuring async updatesquicker one this time :) 1. looking at the official docs for useTransition: ``` import { useTransitiCan't run npm installHowdy y'all, I was trying to use the installer for solid start, and I chose the AuthJS option duringHow do we configure babel proposal decorators with Solid's vite plugin?I've got this Stackblitz: https://stackblitz.com/edit/solidjs-templates-wyjc1i?file=index.html,src%Can't build SolidStart after updating packagesAfter updating packages, I can't build project both locally and on vercel. I can't find anything relhow to trigger the fetcher in createResource if there are multiple signal values?hello, newbie here. In the document, it could be create a Memo as a group of signals as following. WNicest way of having computed properties in a store?I'm trying to model my store in a concise way, I want to have some base properties, and some computTypesafe way to render conditionally based on whether array has zero, one or many elements?Given an array with one or more elements, the idea is to display different UIs. With React, this canHow to implement JWT authentication in SolidJS, without SolidStart?I'm currently learning SolidJS for a SPA app with JWT-based auth. Right now I'm trying to implement Attempting to access a stale value from <Show>...Hi peeps, I have a rather complex application with lots of stores and recently have this issue. ``solidJS equivalent of react's cloneElementI'm trying to convert a react component that uses cloneElement to a solidJS component. I've briefly