How do i access store created by svelte-query
on some other page?
#4824
-
As mentioned in the docs |
Beta Was this translation helpful? Give feedback.
Answered by
louis-young
Jan 21, 2023
Replies: 1 comment 2 replies
-
Hi 👋 I haven't used the Svelte adapter but I'd imagine you can access the data that exists in the cache for a given query by creating/using a query with the same query key wherever you need it, or imperatively via the query client depending on what exactly you're trying to achieve. Have you tried either of these things? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
nooblyf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi 👋
I haven't used the Svelte adapter but I'd imagine you can access the data that exists in the cache for a given query by creating/using a query with the same query key wherever you need it, or imperatively via the query client depending on what exactly you're trying to achieve.
Have you tried either of these things?