-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
refactor: revert onSuccess/onError/onMutate/onSettled callback types to Promise<unknown> | unknown #9251
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
TkDodo
merged 1 commit into
TanStack:main
from
epicenterhq:refactor/revert-onSuccess/onError/onMutate/onSettled-callback-types-to-Promise<unknown>-|-unknown
Jun 5, 2025
Conversation
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
…callback types to Promise<void> | void (TanStack#9202)" This reverts commit 982f6ca.
View your CI Pipeline Execution ↗ for commit fa828a0.
☁️ Nx Cloud last updated this comment at |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9251 +/- ##
===========================================
+ Coverage 45.33% 59.68% +14.34%
===========================================
Files 207 136 -71
Lines 8271 5514 -2757
Branches 1865 1485 -380
===========================================
- Hits 3750 3291 -459
+ Misses 4080 1925 -2155
+ Partials 441 298 -143 🚀 New features to boost your workflow:
|
TkDodo
approved these changes
Jun 5, 2025
braden-w
added a commit
to epicenterhq/query
that referenced
this pull request
Jun 9, 2025
…back return types - Convert remaining T | Promise<T> patterns to MaybePromise<T> in streamedQuery and mutation options - Update mutation callback return types from MaybePromise<void> to MaybePromise<unknown> to mirror TanStack#9251
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
documentation
Improvements or additions to documentation
package: query-core
package: react-query-persist-client
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.
This reverts commit 982f6ca, following discussion in #9202 and #9245.