Skip to content
Discussion options

You must be logged in to vote

If endpoint means a standalone endpoint, then the you can't import stores. Best to pass in data to a standalone endpoint via event.locals. See handle

If endpoint means a page endpoint, then import the store, either from the .js file you created it in or directly from SvelteKit if it's one they provide. For custom stores, see this. If SvelteKit, see $app/stores

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tryggs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants