Post

We shipped this just now, in SvelteKit 2.20. Having AsyncLocalStorage available ~everywhere makes it possible to create some really nice abstractions — we have a bunch of ideas for other stuff we can do. Look forward to seeing how you all use it: svelte.dev/docs/kit/loa... bsky.app/profile/svel...

svelte.devLoading data • Docs • SvelteLoading data • Svelte documentation

Before the update I had to pass a Cloudflare R2 binding down to a helper function that I then had to attach to `locals` for uploading an image - but now I can cleanly separate that and just have an `uploadImage()` function I can use anywhere. This is GREAT for Cloudflare bindings.