Skip to content

doc: Add React Query cache conventions documentation - #608

Merged
Chucks1093 merged 1 commit into
accesslayerorg:devfrom
onajidavid87-web:dev
Jul 26, 2026
Merged

doc: Add React Query cache conventions documentation#608
Chucks1093 merged 1 commit into
accesslayerorg:devfrom
onajidavid87-web:dev

Conversation

@onajidavid87-web

@onajidavid87-web onajidavid87-web commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Create docs/react-query-cache-conventions.md covering query key naming ([entity, identifier?, scope]), the central factory pattern in src/lib/queryKeys.ts, invalidateQueries vs setQueryData decision guidance, a worked example for adding a new entity type, and stale time/gcTime defaults with override recommendations. Also cross-link the new doc from the existing state management guide.

Closes #602

Testing

  • pnpm lint
  • pnpm build

Checklist

  • Linked issue or backlog item
  • Scope is limited to the stated change
  • Updated docs if behavior or setup changed
  • Added screenshots for UI changes when relevant

 Create docs/react-query-cache-conventions.md covering query key naming ([entity, identifier?, scope]), the central factory pattern in src/lib/queryKeys.ts, invalidateQueries vs setQueryData decision guidance, a worked example for adding a new entity type, and stale time/gcTime defaults with override recommendations. Also cross-link the new doc from the existing state management guide.

Closes accesslayerorg#602
@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@onajidavid87-web Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 merged commit 3de99e9 into accesslayerorg:dev Jul 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add docs for state management conventions covering React Query cache keys and invalidation patterns

2 participants