We could set a default refetchInterval for every useQuery() hook via the Default Query Function. The passed refetchInterval should be configurable via the config and defaults to five seconds.
To enable more real-time collaboration in helpwave tasks we should update / refetch the state more often. React Query can help use with that by automatically refetching after a specific time.
Describe the feature
We could set a default
refetchInterval
for everyuseQuery()
hook via the Default Query Function. The passedrefetchInterval
should be configurable via the config and defaults to five seconds.refetchInterval
onuseQuery()
Why is this feature needed?
To enable more real-time collaboration in helpwave tasks we should update / refetch the state more often. React Query can help use with that by automatically refetching after a specific time.
Additional context
No response