jack
jack
Explore posts from servers
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
for some reason i never felt this way with next or sveltekit
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
yea. using it not in ssr sense made the distinction much more clear. having all the docs in one place is nice, but also has this sort of pit fall where everything blends together
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
it's also possible i just had already used start a bit by then so i was more comfortable, but i lean towards a lot of the primitives making more sense in a spa setting
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing 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
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
ah i see
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
so the components' render their own skeleton and fetch their own data?
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
ok ill keep that in mind. i'm still trying to get used to how suspense works and what triggers what and when
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
more or less the same thing i suppose
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
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
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
right yea makes sense
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
get list data, navigate to details view, while details are loading render title of item from list data, details loads and takes over
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
well yea i just want to use it as a fallback in my suspense. once the full data comes in i'll use that
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
i guess i only have partial data but still
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
yea
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
this is kinda inconsequential, it's what most meta frameworks i've seen do/recommend, so i think i'm just being dumb
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
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
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
like i know it's effectively the same
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
it just seems so much more intuitive to pass around the value i've already fetched than fall back to a server cache on page load. perhaps i'm just being stubborn though
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
gotcha. is there any point that you'd reach for some sort of global state store? is it just because it's server state, so syncing that with a store would be annoying ?
38 replies
SSolidJS
Created by jack on 12/15/2024 in #support
dealing with data shared between pages
(just realizing that sounds a bit aggressive ^, actual question not being sarcastic or anything)
38 replies