sveltejs / sapper

The next small thing in web development, powered by Svelte
https://sapper.svelte.dev
MIT License
7.02k stars 437 forks source link

Can't access stores() from within context="module" #1803

Closed xpluscal closed 2 years ago

xpluscal commented 2 years ago

is there a way to access e.g. session data via stores in a context="module" script?

Conduitry commented 2 years ago

No. Code in context="module" runs outside of any instance of the component and (on the server) runs outside of the context of any request.

xpluscal commented 2 years ago

Thx!