Skip to content

Turn off all automatic refetching #1178

@david-crespo

Description

@david-crespo

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: false in the top-level React Query config
    • Remove from the few places it's coded into particular requests
  • Remove refetchInterval: 5000 from instances table
  • Add refetch buttons to tables and any other data that the user might want to refetch

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions