Content
@
0 reply
0 recast
0 reaction
Darryl Yeo 🛠️
@darrylyeo
Excellent rundown of how data fetching works in SvelteKit – specifically, the relationship between the “rendering tree” (`+layout.svelte` / `+page.svelte`) and the “data tree” (`+layout.server.ts` / `+layout.ts` / `+page.server.ts` / `+page.ts`). https://youtu.be/j9Wf_nyKin4
3 replies
1 recast
14 reactions
Darryl Yeo 🛠️
@darrylyeo
Speaking of which, I really need to revive skiffle.dev one of these days…
1 reply
0 recast
0 reaction
Rafi
@rafi
Good one! +layout.svelte is v useful for modals and transient views. Instead of embedding modal logic within parent page, it's possible to put modal on a different route while keeping +layout state intact. This makes parent view free from modal logic and comes with free perks like component lazy loading
1 reply
0 recast
1 reaction
@mpryor.eth
Thank you sharing! I try to watch al that you share.
0 reply
0 recast
0 reaction