feat: add mutationOptions helper#84
Conversation
|
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 (3)
📝 WalkthroughWalkthroughThis PR adds a new ChangesMutationOptions Helper
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add 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 |
Add mutationOptions https://tanstack.com/query/latest/docs/framework/react/reference/mutationOptions
Summary by cubic
Adds
mutationOptionshelper for strongly typed mutation configs. Improves type inference with no runtime changes and is exported from the package entry.mutationOptions(options)helper that returns the given options while inferring types fromMutationConfig(excludingqueryClient).src/index.tsfor top-level import.Written for commit 3a8bcea. Summary will update on new commits. Review in cubic
Summary by CodeRabbit
mutationOptionshelper function with full TypeScript type support for streamlined mutation configuration management in TanStack Query integration.