docs(query-core): document cache subscription events - #11266
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe cache reference documentation now describes subscription event unions, event-specific properties, action types, paused-operation resume examples, and the required ChangesCache subscription references
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This change only documents cache subscription events and does not alter published code or runtime behavior; no actionable merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎯 Changes
Motivation
I wanted to detect when a paused mutation resumed. While looking into it (thanks opus), I found that this is possible through an
updatedevent with acontinueaction.The cache subscription docs currently show very little about the available event types, actions, and their payloads. I am not sure whether tables are the best way to present this information, or whether these action details are intended to be part of the documented public API in the first place. But I could really have used them when looking into this.
✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
mutationCache.subscribedocumentation with event types, event-specific properties, mutation action types, and paused-mutation resume examples.queryCache.subscribedocumentation with cache and observer events, action types, and paused-query resume examples.