ry
Explore posts from serversResource loading from param blocks navigation
Yeah I see where you are coming from, totally agree that many sites have gone too far with loaders. But take youtube for example, navigating to a new video has similar transition hold for the main data with a page loader, but it no longer holds waiting for comments to load. I think waiting for secondary data to load before showing a page is worse.
12 replies
Resource loading from param blocks navigation
I still think having component level fallbacks make sense in some cases like the one I show, with multiple resources where 1 is slow, relying only on a page level indicater seems like bad ux.
Similar to how you can add
deferStream
to indicate which resources need to load before flushing the page.12 replies
Resource loading from param blocks navigation
That workaround in the issue does seem like a viable escape hatch that makes sense since you exclude the resource from the navigation transition. Although it might not be obvious to figure out. Might just need some more documentation around it.
I believe
createAsync
is just a higher-level wrapper around createResource
so the transitions work the same.
I experience the same behavior you describe for the effect param value holding. To me this seems intentional? Since you want to hold the same state during the transition.12 replies
Resource loading from param blocks navigation
Thanks for this. Yeah basically I want to opt out of the transitions because if the page has multiple resources, I don't want 1 slow resource to pause the navigation.
Would you say this is a bug that
createResource
does this?
https://stackblitz.com/edit/github-xdufjx-uf411k?file=src%2FAPI.ts12 replies
Vercel + Prisma
Opened a PR here for Vercel and Netlify https://github.com/solidjs/solid-start/pull/644
90 replies
Vercel + Prisma
Do you think having an adapter config would be better? Since we would not have unnecessary duplicate files in
.solid
But it would have to flatten the directory, not sure if there is a usecase where the directory structure needs to be preserved (prisma/schema.prisma
-> render.func/schema.prisma
)90 replies