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
documentation clarification
useMutation stuck on isLoading set to true
A bug in React Native section
need some clarification please
Is it possible to extract useMutation from the component/page file in Next.js?
Exposing mutation state through zustand
useMutation
call (isLoading
, isSuccess
etc) like we can with useQuery
, so I want to sync it to a zustand
store:
```tsx
const useStore = create(set => ({...Setting the initial data of an useQuery with SSR data
NextJS
application that I am now trying to list rows of a table called Message
. I have to now server rendered it, but I need to refetch it and consider using useQuery
aswell. Whats the approach I should use when the inital data should be the SSR one, but then after that im refetching from the client side.
Here is the SSR code I currently have: ...Clarification on Handling Chunks of Data in postMutation Response
way to log out number of query observers mounted for a query
Is enriching the query-return props a good practice?
How to trigger query when url param changes
const fetchNotes = async () => {...
data: T | undefined best practices
Query manual refetch indicator
query.isRefetching
property for that purpose, but looks like it doesn't differentiate between a manual refetch with query.refetch
and a invalidation with queryClient.invalidateQueries
....All components must be client component when fetch data on server component?
A Normalized cache in React Query
Map queries in a single hook
I want to fetch data for each URL inside one
useQuery
or useQueries
hook.Currently, I have this
useQueries
hook which returns an error that queries is undefined
:
```
const [results] = useQueries({...share mutation state (status)

React Suspense with react-query and router
useSuspendedQuery
.
I created the QueryClient in the application root and pass it down using the QueryClientProvider.
I then included a ...Suggestions on dynamic refetchInterval adjustment
refetchInterval
takes a function to allow it to be adjusted, which is great. I'm wondering what the suggested/ideal approach is for the following scenario:
What I'd like to achieve is to be able to trigger a more rapid refetch after a job is triggered by a button push, and then fall back to a more relaxed schedule once all the tasks associated with that job are complete. The idea here being that the UI should be more reactive when a job is ongoing, but in the interest of performance should slow down if nothing is happening.
The issue I'm encountering is that because I'd like to use a more relaxed interval as my default (30 seconds), it takes a long time to trigger the recalculation to switch over to the more rapid interval (5 seconds). I'd like the switch to be instantaneous....refetching from child component with typescript?