-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix(vue-query): Make use mutate reactive to argument changes #4339
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
Merged
DamianOsipiuk
merged 40 commits into
TanStack:main
from
matthewhausman:make-use-mutate-reactive-to-argument-changes
Oct 22, 2022
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
de920b4
update
matthewhausman 381b422
Update utils.ts
matthewhausman a7f9195
Update types.ts
matthewhausman 20a3ba9
potentail fix to parseArgs typing
matthewhausman cf78d2f
change name of maybeRefArgs
matthewhausman af9d5a2
Update useMutation.ts
matthewhausman 927f5f3
update
matthewhausman b5ec820
revert some stuff
matthewhausman f4d0ebf
Update types.ts
matthewhausman 972af36
Update types.ts
matthewhausman 046452b
update
matthewhausman 17731e1
Update types.ts
matthewhausman cc669dd
Update types.ts
matthewhausman 918755f
Update useMutation.ts
matthewhausman e826d02
update
matthewhausman c390809
update
matthewhausman 5079492
Update useMutation.ts
matthewhausman 857e2ce
Update useMutation.ts
matthewhausman 6a9035b
PR feedback
matthewhausman 7118264
Update useMutation.ts
matthewhausman 95864b2
Update types.ts
matthewhausman 0a06a18
Update useMutation.ts
matthewhausman 097de89
Update types.ts
matthewhausman a4ccbc4
Update types.ts
matthewhausman 4976e2e
Update useMutation.ts
matthewhausman ccf20b2
Update types.ts
matthewhausman 98904f8
Update useMutation.ts
matthewhausman 41be28a
update
matthewhausman 8a19aa1
update fn names
matthewhausman e5fee68
change subscribe to const
matthewhausman 3c88803
Update types.ts
matthewhausman 34ced5c
Update useMutation.ts
matthewhausman fab0f73
wrong arg passed in useMutation, unnecessary changes in testing files…
matthewhausman e6b1641
update
matthewhausman fab13aa
update
matthewhausman 7f96936
Update useMutation.test.ts
matthewhausman 412ab66
Update useMutation.test.ts
matthewhausman f879965
update
matthewhausman 9684698
Update useMutation.test.ts
matthewhausman 830ecfc
Update useMutation.test.ts
matthewhausman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think changes in this file are relevant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok will take another look - for some reason or another passing no args was failing the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea why these changes would cause something as such?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually no idea.
Does it work on
mainbranch?What TS version do you have installed?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that test is running on your cloud test suite - not my local so not sure if my ts version is relevant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export type MutateFunction<
TData = unknown,
TError = unknown,
TVariables = void,
TContext = unknown,
it seems completely reasonable to get an error for not passing args - variables is not optional. Maybe I somehow removed a Partial somewhere... pretty strange