react-query-questions
solid-query-questions
table-questions
virtual-questions
router-questions
react-charts-questions
ranger-questions
vue-query-questions
svelte-query-questions
bling-questions
form-questions
angular-query-questions
start-questions
db-questions
start-showcase
router-showcase
📣-announcements
Using derived stores in mutations
CreateMutationOptions
is supported based on the types and at runtime it works as expected. However, in TS land none of the generics seem to be working: https://codesandbox.io/p/sandbox/cocky-varahamihira-xdcnff?embed=1&file=%2Fsrc%2Flib%2Fmutations.ts%3A12%2C33
Is this a known issue or am I doing something wrong?...
Create typed wrapper for createQuery function
Svelte with tanstack query
createQueries, check when all the queries loaded
isLoading
, when using createQueries
?svelte-query 5: useQueryClient tries to load from context even with override client
createQuery()
and useQueryClient
with your own query client, rather than the one in context, like:
```javascript
createQuery(options, myClient)
// or
useQueryClient(myClient)...Documentation is confusing
Use derived stores with svelte-query 5
What is the right way to import queryClient with SSR?
QueryClient
object in Svelte?
I found two options:...`isRefetching` is always true
Use createQuery without Context API?
createQuery
without using the Context API for fetching the QueryClient to use? I am trying to use createQuery outside the context of a Svelte component to fetch some data. I want createQuery to return a Svelte store like it does today. I just want to pass my own QueryClient instead of relying on Context.TypeScript type hinting fails

Advice for complex custom hooks
Mutation not triggering updates properly
svelte-query
. So far most of the mutations seem to work properly, with one exception: updates.
I retrieve a list of objects via createQuery
. I use that store to feed a table ($objects.data
).
When I modify a single instance of these objects with a mutation and call invalidateQueries(<queryKey>)
no re-rendering is triggered on my table. To simplify things, I modified the playground sample and kicked out a lot of things like xxx.isFetching
which triggers a re-render and finally got to a state where editing a todo on the list will not trigger a re-render:
https://codesandbox.io/p/sandbox/peaceful-chebyshev-g1k6rq?file=%2Fsrc%2Froutes%2FEditTodo.svelte&selection=%5B%7B%22endColumn%22%3A9%2C%22endLineNumber%22%3A85%2C%22startColumn%22%3A9%2C%22startLineNumber%22%3A85%7D%5D
...Use with custom stores?
createInfiniteQuery runs fetch, when initialData is defined
+page.svelte
```js
import {createInfiniteQuery} from '@tanstack/svelte-query';
export let data; // this has the initial data...
SSR + SvelteKit w/prefetching data should only fetch during the prefetch and not client-side
From the provided SSR example (https://tanstack.com/query/latest/docs/svelte/examples/svelte/ssr), it seems that there are two fetches occurring (one for the prefetch and one on the client) when I observe the events in the network tab in the screenshot (i.e. after hitting the browser refresh button for the CodeSandbox). Am I misinterpreting the intended behavior/implementation of this feature?...

Svelte-query - undefined queryclient
cannot read properties of undefined (QueryClient)
I have declared the variable let queryclient = new QueryClient()
, Just dont know what's wrong in here
Thanks!...