Summary
The client uses React Query for all server state but there are no documented conventions for query key structure or cache invalidation patterns. Contributors adding new queries or mutations end up with inconsistent key formats and unpredictable invalidation behaviour.
Scope
- Document the query key naming convention used across the client (e.g.
[entity, id, scope] format)
- Explain when to use
invalidateQueries vs setQueryData for cache updates after mutations
- Show an example of a query key factory for a new entity type
- Describe the stale time and cache time defaults and when to override them
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The client uses React Query for all server state but there are no documented conventions for query key structure or cache invalidation patterns. Contributors adding new queries or mutations end up with inconsistent key formats and unpredictable invalidation behaviour.
Scope
[entity, id, scope]format)invalidateQueriesvssetQueryDatafor cache updates after mutationsAcceptance Criteria
docs/and cross-links the page contribution guideETA: 12 hours
Coordinate on Telegram