test(query-persist-client-core/persist): add test for ignoring mutation observer events in 'persistQueryClientSubscribe'#10880
Conversation
…on observer events in 'persistQueryClientSubscribe'
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR adds a test case to the query persist client test suite that verifies ChangesMutation Observer Non-Persistence Test
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit cb27b71
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
size-limit report 📦
|
🎯 Changes
Adds a unit test for
persistQueryClientSubscribecovering the mutation cache subscription: events fired by manipulating a mutation observer (e.g.observerAdded,observerOptionsUpdated,observerRemoved) are not cache events, so they must not trigger a persist.This mirrors the existing query-observer test and covers the previously-untested
isCacheEventTypeguard on the mutation cache subscription.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit