Replies: 1 comment
-
I think this is why we have the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, we can use
refetchOnMount: "always"
to simplify short-interval polling by immediately refetching on rendering the same view again. But, this still leaves out the use case of being able to easily use newinitialData
that's been supplied from server-side rendering. This means that when navigating between views using useQuery for polling, there can be a delay before new data is loaded.A possible workaround could look like (not 100% sure if this actually works as-is):
The desired behavior could be something more like:
Alternately, if the way it works doesn't make it convenient to track existing
initialData
, there could be aresetOnMount
option that would generally cover the same use case (that is, falling back toinitialData
on navigation away from and then back to a view).Beta Was this translation helpful? Give feedback.
All reactions