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
Unhandled runtime error using useMutation hook
useMutation hook handles the error with onError method, but instead I get unhandled runtime error, here is my code:
```
const updateDiary = async (updatedDiary: Day[], userId: string) => {
const { error } = await supabase
.from('current_diaries')...
useMutation onError behavior
useMutation , and if the API returns any errors I call setErrors inside onError callback. But I don't understand why setErrors is only being updated when I click in the Submit Button for the 2nd time.
...Purpose of mutationKey in useMutation
mutationKey - there is very little information in the docs - it mentioned that this can be used to identify mutations in the dev tools but so far I am not able to inspect any mutation in the dev tools - I only see queries. What is the purpose of mutationKey and is it best practice to always put it in useMutation? Thank you! 🙂useMutation POST request returning `(400) Bad Request`
How do I fetch even on background?
How does React query manage timers?
How to set the setQueryData cacheTime to infinite?
Looking for (typescript) useInfiniteQuery examples with a nextPageToken

Refetch once a day (at midnight)
React query populate initial state
const [selectedCountry, setSelectedCountry] = useState(!isLoading && labels[3]?.label);
const [selectedCountry, setSelectedCountry] = useState(!isLoading && labels[3]?.label);

queryClient.invalidateQueries failed. help neeeded
Multiple modules - hook factory?
data from multiple endpoints
Using React Query with Supabase
It was working fine with version v3*
Mutation onSuccess doesn't have ID returned from server
Correctly typing data on `placeholderData`
data to display a better loading state. Imagine a blog post index that only has the title, when routing to the post it starts fetching the full post, but meanwhile I'd love to use the partial post from the index as placeholderData. However, while loading the type of data is not partial. Any thoughts, am I doing it wrong?CSRF Token
Check the status of query?
getQueryState, however I can't figure out how to do a matchall with getQueryState so I am currently stuck looking at the queryCache and having to poll the state of each query to see if it is finished... is there a better way?Prefetch a query, then skip fetching when using the query
queryFn I see it's being called when prefetched (as expected) and then again in the component calling useQuery (not as intended).
I'm new to this library, is there a way I can set a cache setting or something so that I can avoid the second call when navigating but still get the benefits of useQuery for refetching afterwards?
Component that does the prefetching:...