Open quiteeasy opened 1 month ago
Interesting. This could be useful as a plugin once more stuff is exposed. I see it as a dangerous default as it would spam the server very often
Adding this as an option would be useful, but I would not set it to true
by default
If it's added, it should be fully tree shakable too
Should we add an option to QueryPlugin
or possibly another plugin (perhaps as a separate package) to enable autoRefetch
across the app, while still allowing control through each individual useQuery
options? This approach would ensure it is tree-shakable and maintains flexibility
We will see later on but probably a different kind of plugin. I think a lot of other more critical features are still missing before this 😄
Add a boolean option,
autoRefetch
, to automatically refetch an entry when it becomes stale.