Repository navigation
test(*/useQuery): rename the 'throwOnError' callback parameter to 'err' to avoid shadowing the returned 'error' - #12295
Conversation
…r' to avoid shadowing the returned 'error'
|
|
View your CI Pipeline Execution ↗ for commit 8318373
☁️ 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
size-limit report 📦
|
🎯 Changes
In the
should handle throwOnError function based on actual error statetest of react-query and preact-query, thethrowOnErrorcallback'serrorparameter shadowed theerrordestructured from theuseQueryresult (no-shadow).err, matching the otherthrowOnError: (err) => ...callbacks in the same files.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit