You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mirroring issue 3312 from Relay since it is a discussion there whether or not this should be handled in the Network Layer. If so, then it would be great if it was possible here.
Rising libraries such as SWR or React Query support focus refetching, meaning that the client will not poll if the user has switched to a different tab or window, and it will immediately fetch again if the user comes back to the tab. This saves a lot of wasted requests, while maintaining a great UX.
According to React Query's and URQL's comparison pages then it seems like Relay Modern Network Layer doesn't support Window Focus Refetching. Since it is not listed as an availability for Relay through any 3rd party library like this.
Above quote is from the similar request for Apollo Client. It has details and example code on how SWR and React Query implement window focus refetching, with a code sandbox example showing it, too. That might help for inspiration and/or discussion on a potential concrete implementation.
With the caveat that the URQL comparison page seems to have overlooked this react-relay-network-modern library, as it is referencing the classic react-relay-network-layer.
Does Window Focus Refetching make sense for Relay Modern Network Layer? If so, is it already baked in (contrary to what the above comparisons)? If not, is it on the roadmap? If not, why not?
The text was updated successfully, but these errors were encountered:
Mirroring issue 3312 from Relay since it is a discussion there whether or not this should be handled in the Network Layer. If so, then it would be great if it was possible here.
According to React Query's and URQL's comparison pages then it seems like Relay Modern Network Layer doesn't support Window Focus Refetching. Since it is not listed as an availability for Relay through any 3rd party library like this.
Above quote is from the similar request for Apollo Client. It has details and example code on how SWR and React Query implement window focus refetching, with a code sandbox example showing it, too. That might help for inspiration and/or discussion on a potential concrete implementation.
With the caveat that the URQL comparison page seems to have overlooked this
react-relay-network-modern
library, as it is referencing the classicreact-relay-network-layer
.Does Window Focus Refetching make sense for Relay Modern Network Layer? If so, is it already baked in (contrary to what the above comparisons)? If not, is it on the roadmap? If not, why not?
The text was updated successfully, but these errors were encountered: