no useQuery for svelte kit #8363
Unanswered
lucasportella
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems there is no useQuery for svelte kit. I'm using version s"@tanstack/svelte-query": "^5.32.0" and "@tanstack/svelte-query-devtools": "^5.32.1". What would be the approach to get query data, like isLoading from a query but in different pages/components?
$: connectQuery = createQuery({ queryKey: ['connect', token?.ticker, $storedWallet.address], queryFn: async () => await handleConnect() });
I would like to get data from this query using through the 'connect' key to know if the query is loading, if it failed etc.
Beta Was this translation helpful? Give feedback.
All reactions