How do I fetch even on background?
As of now the query only refetch if I click on the window, otherwise it doesn't update. How do I check if there is a change in the database and update the query without having to click on the window?
1 Reply
conscious-sapphire•4y ago
stale queries refetch due to multiple "events" happening - window focus is just one of them. The others include a network reconnect, or a new component mounting that needs that query.
anything else, you'd need to trigger a fetch imperatively, or do polling via
refetchInterval