Skip to content

Conversation

@TkDodo
Copy link
Collaborator

@TkDodo TkDodo commented Jan 20, 2023

No description provided.

because our default TError type is now Error
because our default TError type is now Error
I can't say I fully understand this code, but whatever we reject here does not land up in our reducer because we have already rejected with a CancelledError

the rejection here is just necessary to stop further pages from fetching after the AbortSignal has been consumed
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 20, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5f83ec4:

Sandbox Source
@tanstack/query-example-react-basic-typescript Configuration
@tanstack/query-example-solid-basic-typescript Configuration
@tanstack/query-example-vue-basic Configuration

@TkDodo TkDodo merged commit 8c373d2 into v5 Jan 20, 2023
@TkDodo TkDodo deleted the feature/errors branch January 20, 2023 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants