jack
Explore posts from serversdealing with data shared between pages
side note piece of feedback: it may sound counterintuitive, or at least was to me when i realized this, but i think the best way to get started with solidstart is with the server off.
i've gotten much more comfortable with solid and the action/query primitives using it this way than when i was working on an ssr'd project. especially, the action/query stuff, makes a lot of sense and is really useful in a spa setting, whereas when i was figuring this out, it was hard to distinguish these things from the server-first stuff like 'server only', etc.
38 replies
dealing with data shared between pages
the way i was thinking was
in my layout where i render a suspense for the child page, grab the data from the list cache (which will be populated)
find the relevant item from the list using the id in the url
render that as the suspense fallback, then just use the actual data when it comes in
38 replies
dealing with data shared between pages
like basically: i have this piece of data. i click a button and see something new. i still need that piece of data but can't have it anymore without falling back to a server state cache. feels unintuitive to me
38 replies