S
SolidJS•5mo ago
cronosh2o

SolidStart for PWA with CSR? And Guide of available templates.

I want to build a PWA with CSR. So, I've installed Solid Start, and used the "basic" template. But: 1. I'm not sure if that's my best alternative. Is there a place where I can read the purpose or attributes of each of the suggested templates?. 2. Is it even a good idea to use SolidStart for a CSR PWA? because here: https://start.solidjs.com/core-concepts/state-management I've found this text: "Additionally, it is important to note that global state should not be used in SSR (server side rendering) solutions, such as Solid Start." Does this mean SolidStart is not ideal for CSR? 3. Should I concider something else for a CSR PWA?
4 Replies
lxsmnsyc
lxsmnsyc•5mo ago
1. basic offers the setup for meta and router. SolidStart is less restrictive on the router and meta choice. 2. this only applies if you're doing SSR. You wanted CSR. 3. Maybe
cronosh2o
cronosh2o•5mo ago
2. Yeah, but this seems to suggest SSR is the main focus of this meta-framework. 3. Do you have a suggestion? Should I avoid SolidStart? or even SolidJS?
lxsmnsyc
lxsmnsyc•5mo ago
2. yes it is, it's a full-stack framework. 3. That depends on you. If you want to stick with Solid, you can just use the basic Vite template
cronosh2o
cronosh2o•5mo ago
Got it. Thanks a lot for this data. It really helps! 🙂
Want results from more Discord servers?
Add your server
More Posts
Import React component with Module FederationI have a simple use case which belies the greater effort: importing a counter with a starting value How can I make auth0 with solidjsI found <https://github.com/rturnq/solid-auth0>, but It doesn't have docs or examplesCached resource runs into an error when using an actionI'm running into this error which I've isolated to a component that uses this cached function ``` coCan on__ handler be async?Seems that having async handlers works fine, ```jsx const button = <button onClick={doSomethingAsyCan't route with Solid Router in subfolder of multi-page Vite appi have a folder structure where my solid app exists inside of `/prefabs` with children like `/prefacreateResource does not trigger suspense when its first-argument signal changesI have a modal component, with its open state managed by a signal. I want to fetch the data that showindow.location.search not empty after changing routeI need your help because I'm stuck and not sure how to proceed. I have a Solid.js app with the folloUndici fetch failed while building solid-start project on prod server@Halcyon while building solid-start project with `solid-start build` inside docker build with `nodNested Immer "produce" signals with componentsI'm trying to implement something like this, which would allow me to create "nested" signals that upHow can I pass data from middleware to frontend on solid-start.I have this middleware to validate a user accesstoken. And the response provides me the name of the