-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix(query-core): query cancellation and reverting #9293
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?
Changes from all commits
ebc1afe
eccc9ca
ee19f91
5a1399f
bded857
8a560ab
f2d2bbc
9b710ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1050,7 +1050,7 @@ describe('queryClient', () => { | |
queryKey: key1, | ||
queryFn: () => 'data', | ||
}) | ||
queryClient.fetchQuery({ | ||
queryClient.prefetchQuery({ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this now throws a |
||
queryKey: key1, | ||
queryFn: () => sleep(1000).then(() => 'data2'), | ||
}) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,6 @@ export { | |
shouldThrowError, | ||
} from './utils' | ||
export type { MutationFilters, QueryFilters, Updater, SkipToken } from './utils' | ||
export { isCancelledError } from './retryer' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this a breaking change? Should we just deprecate for now? |
||
export { | ||
dehydrate, | ||
hydrate, | ||
|
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.
@Ephem we now get another
CancelledError
here if we clear the caches. They are local to this test, so clearing them shouldn’t be necessary, but I’m wondering where this is coming from in the first place 🤔