-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix(react-query): allow retryOnMount when throwOnError is function (#9336) #9338
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 19 commits into
TanStack:main
from
Han5991:fix/usequery-retry-on-mount-with-throw-on-error-issue(#9336)
Dec 30, 2025
+206
−19
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
878ac34
test(react-query): add tests should retry on mount when throwOnError …
Han5991 3225745
fix(react-query): refine throwOnError retry logic for error boundary …
Han5991 4c40790
fix(react-query): enhance throwOnError logic in error boundaries
Han5991 182b239
test: Add tests for `throwOnError` behavior in `useQuery`
Han5991 e8e0caa
fix(react-query): improve throwOnError logic with query state validation
Han5991 4b795be
Merge branch 'main' into fix/usequery-retry-on-mount-with-throw-on-er…
Han5991 cd2dd84
Merge branch 'main' into fix/usequery-retry-on-mount-with-throw-on-er…
Han5991 435dd62
Merge branch 'main' into fix/usequery-retry-on-mount-with-throw-on-er…
Han5991 4a2dd73
Merge branch 'main' into fix/usequery-retry-on-mount-with-throw-on-er…
Han5991 199fc0a
fix(react-query): fix test flakiness and query cache timing (#9338)
Han5991 165e133
Merge branch 'main' into fix/usequery-retry-on-mount-with-throw-on-er…
TkDodo 961219d
ci: apply automated fixes
autofix-ci[bot] 9eea809
fix(react-query): refine retryOnMount logic and error boundary handling
Han5991 c422284
Merge branch 'main' into fix/usequery-retry-on-mount-with-throw-on-er…
TkDodo a22e583
ci: apply automated fixes
autofix-ci[bot] 0892724
feat(react-query): make query param required but nullable in ensurePr…
Han5991 062c86d
Apply suggestions from code review
TkDodo 75c1e69
chore: size-limit
TkDodo 9fd84a6
chore: changeset
TkDodo 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@tanstack/react-query': patch | ||
| --- | ||
|
|
||
| fix(react-query): allow retryOnMount when throwOnError is function |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.