Conversation
… 'onSuccess', 'onError', and 'onSettled'
|
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 (2)
📝 WalkthroughWalkthroughAdded test coverage for callback invocation ordering in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 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 b83e14a
☁️ 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
useMutationsingle callback cases in bothreact-queryandpreact-query:should be able to call 'onSuccess' callback after successful mutate: onlyonSuccesscallback at both useMutation and mutate levelshould be able to call 'onError' callback after failed mutate: onlyonErrorcallback at both levelsshould be able to call 'onSettled' callback after mutate: onlyonSettledcallback at both levelsonSuccess+onSettled,onError+onSettled)✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
Tests
useMutationhook by adding callback invocation ordering tests to verify library-level callbacks execute before per-call callbacks for success, error, and settled scenarios across both React and Preact implementations.