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
I currently have custom hooks for each query/mutation of mine. Not sure how to implement useQueries.
useGetInitialData hook and return a combined loading state to show the splash screen until this is complete.
Here are a few examples of my queries and how I am planning on creating that useGetInitialData hook....Does anyone have an example for using debounce with React query?
Should i fetch my own database from the clientside? or is that dangerous? (im using pocketbase)
Query Key disappearing NextJS DevTools
error saying no queryclient set
in my app.jsx i have a ReactDOM.render call that contains the <App /> which is surrounded by <QueryClientProvider>. how would i fix this? or does someone have an example of a main.jsx that renders an App that will have access to a QueryClientProvider...
Should we care about memory optimization when not using SSR?
Calling refetch but with different url parameters?
mutationFn is optional

SSR prefetchQuery partial key
useQuery(['foo', isAuth], fetcher)
useQuery(['foo', isAuth], fetcher)
React Query refetches deleted item
React Query + Remix?
MutationKey null when using persistQueryClient
useCreateTodo, I am getting a mutationKey of [null]. However, if I import the useMutation hook and use it like this: useMutation({mutationKey:['create-todo']}), it works when I restarts the app.
I already have a mutationDefaults
```
queryClient.setMutationDefaults(['create-todo'], {...Persister Timing
queryClient.clear() and if the user happens to refresh the page fast enough, their auth cookie gets unset but the cache still holds the user information. Unlikely a user will see this, but just curious if I can do anything to fix itsetQueryData and structuralSharing
setQueryData manually.
I have a query which I want to be updated only manually by setQueryData, so I set staleTime and cacheTime to Infinity.
I also set structuralSharing to false, so my component always react to data changes after manual setQueryData call, even if updated data is exactly the same as previous one.
The thing is that it doesn't. If new data is new object (made by spread operator), but is deeply equal to old data, data property returned from this query still has the same reference and it doesn't trigger useEffect(..., [data])....add items in cache manually
Run a function only once for all instances
How to control the error when return undefined from a fetch?
How can I `useQueryClient` outside a Svelte component?
svelte-query – thanks so much Lachlan!
I'd like to abstract my query functions and define them in .ts files away from my .svelte files.
As part of this, I want to use onMutate and onSuccess functions to do optimistic updates etc, e.g.:...Clear the data from useQuery?
Creating a mutation.
