-
I believe that my title sums my question up pretty good: ) thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
j4w8n
Aug 12, 2022
Replies: 1 comment
-
If endpoint means a standalone endpoint, then the you can't import stores. Best to pass in data to a standalone endpoint via 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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tryggs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 handleIf 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