test(query-core/queryObserver): add test for 'getOptimisticResult' updating 'currentResult' with changed data#10102
Conversation
…dating 'currentResult' with changed data
|
📝 WalkthroughWalkthroughThis PR adds a test case to validate that Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit 717d5d8
☁️ Nx Cloud last updated this comment at |
🎯 Changes
Add a test to verify that
getOptimisticResultupdatescurrentResultwhen the query data has changed between renders (e.g., viasetQueryData).✅ Checklist
pnpm run test:pr.🚀 Release Impact