The idiomatic way to do data fetching in stable SvelteKit is via load functions.[0]
They still do a good job and allow you to cache the results and invalidate that cache, but they are at a route/layout level rather than at a component level, which is what remote functions solve.
sharktheone · · focus · HN ↗
cassepipe · · focus · HN ↗
chrysoprace · · focus · HN ↗
They still do a good job and allow you to cache the results and invalidate that cache, but they are at a route/layout level rather than at a component level, which is what remote functions solve.
[0] <a href="https://svelte.dev/docs/kit/load" rel="nofollow">https://svelte.dev/docs/kit/load