-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
refactor(react,vue): rename mutate functions to mutate/mutateAsync #4878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
* chore: remove v2 deprecations * chore: up * docs: fix dead links
…ve-connectors-to-peer-deps
…ve-connectors-to-peer-deps
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## tmm/move-connectors-to-peer-deps #4878 +/- ##
====================================================================
- Coverage 87.45% 87.44% -0.02%
====================================================================
Files 259 259
Lines 2463 2461 -2
Branches 766 766
====================================================================
- Hits 2154 2152 -2
Misses 134 134
Partials 175 175 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Renames mutate functions to
mutate/mutateAsyncto reduce destructure key renaming fatigue and align with TanStack Query terminology.Before
Had to destructure hook result and often rename keys when using multiple of the same hook. Could decide not to destructure, but syntax becomes awkward for mutate functions (e.g.
connect.connectorconnect.connectAsync).After
Allows you to name the hook result whatever you want and not worry about also renaming properties.