-
-
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
Conversation
🦋 Changeset detectedLatest commit: 79e611b The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4878 +/- ##
==========================================
- Coverage 87.45% 87.35% -0.11%
==========================================
Files 259 259
Lines 2463 2443 -20
Branches 766 766
==========================================
- Hits 2154 2134 -20
Misses 134 134
Partials 175 175 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
bde1c37 to
7e58fe1
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Size Change: 0 B Total Size: 969 kB ℹ️ View Unchanged
|
fa41e6c to
fc0d60c
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
4a386a1 to
cd94add
Compare
cd94add to
deab0f6
Compare
deab0f6 to
79e611b
Compare
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.