-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Description
We have kept auto-refetches in mostly for demo purposes (it's cute to watch the status on an instance change live as it boots), but I've always planned to remove them on the grounds that surprise refetches go against the principle of least astonishment. My goal is for the app to behave like a server-rendered app whenever possible, and in this case that means that if you're looking at some data on screen, it's not going to go anywhere unless you click something. That means anything we want to be able to refetch should a) work if you refetch the page, and b) probably should have a refetch button in the UI that reloads the data without a refresh.
Changes would be:
refetchOnWindowFocus: falsein the top-level React Query config- Remove from the few places it's coded into particular requests
- Remove
refetchInterval: 5000from instances table - Add refetch buttons to tables and any other data that the user might want to refetch
Metadata
Metadata
Assignees
Labels
No labels