helpwave / web

The official web application of helpwave
https://staging-tasks.helpwave.de
Mozilla Public License 2.0
12 stars 4 forks source link

Continuously refetching using `refetchInterval` on `useQuery()` #679

Open MaxSchaefer opened 10 months ago

MaxSchaefer commented 10 months ago

Describe the feature

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.

refetchInterval on useQuery()

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

DasProffi commented 3 months ago

@MaxSchaefer is this still something we want to implement?