Simon Green Kristensen
simon-green.dev
Simon Green Kristensen
@simon-green.dev
Frontend Team Lead and software developer from Denmark 🇩🇰
On the line of "you can just export global state": That might be fine in Svelte CSR, but if you do SSR with SvelteKit, you can't do that.
To solve this issue, you either need to drill in props, or use getContext/setContext (which works much like React context providers)
January 22, 2025 at 4:46 PM