kafka-ui
kafka-ui copied to clipboard
FE: Do not refetch data on window focus
Some components like ui/clusters/local/schemas/test/edit does refetch data via tsquery on window focus.
This is considered a harmful behavior, because if there are any unsaved changes made to the schema itself the data will be refetched and the changes would be lost.
TODO:
- Check all the places where window focus refetch is on but shouldn't be
- Add
QUERY_REFETCH_OFF_OPTIONSin these places
Hey could I have this issue assigned to me please?
Just to clarify, how were you thinking of determining if "window focus refresh is on but shouldn't be". Should it just be disabled on components that have editable portions?
Just to clarify, how were you thinking of determining if "window focus refresh is on but shouldn't be". Should it just be disabled on components that have editable portions?
yeah sounds like a good approach. And we could always adjust this in the future.