Open adammertel opened 3 months ago
@adammertel can you point on something specific? I'm curious which one you've found, because usually it's separated for a reason.
Sorry, should have been more specific - I have edited the title.
This is mostly concerning the invalidation - for example, when you edit a statement, ALL the territories in react-query
cache are invalidated. So the invalidation events should be more specific whenever possible.
Query keys should follow the logic of API calls and prevent the same queries from being run repeatedly. This involves the query invalidation.