Malpaux / apollo-offline

An offline toolkit for the Apollo client
https://www.npmjs.com/package/apollo-offline
BSD 3-Clause "New" or "Revised" License
188 stars 8 forks source link

Query Refetch #10

Open PaulBrachmann opened 7 years ago

PaulBrachmann commented 7 years ago

In many cases (e.g. blogs, news, etc.) query results should be updated immediately after a user regains internet access.

Using a __refetch__ flag in a query could indicate that it should be executed again once the detectNetwork method passed in with the redux-offline config detects a network connection. Additionally, retries of pending queries/mutations could be watched and used to determine the current network status.