Skip to content
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

Allow passing meta to retry.fail, and passing baseQuery to ensure types match #4723

Merged
merged 3 commits into from
Nov 23, 2024

Conversation

EskiMojo14
Copy link
Collaborator

Alternative fix to #3789, compared to #4721 which would be a breaking change.

This makes the change non-breaking, and also allows providing the baseQuery as a type parameter to retry.fail for correct error and meta type checking.

Meta parameter being optional is fine as the meta property in QueryReturnValue is also optional.

Copy link

codesandbox bot commented Nov 22, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

codesandbox-ci bot commented Nov 22, 2024

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 2f9e318:

Sandbox Source
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration
rtk-esm-cra Configuration

Copy link

netlify bot commented Nov 22, 2024

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit 2f9e318
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/6742442482179800087a1542
😎 Deploy Preview https://deploy-preview-4723--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented Nov 22, 2024

size-limit report 📦

Path Size
1. entry point: @reduxjs/toolkit/query (cjs, production.min.cjs) 22.39 KB (+0.03% 🔺)
1. entry point: @reduxjs/toolkit/query/react (cjs, production.min.cjs) 24.44 KB (+0.02% 🔺)
2. entry point: @reduxjs/toolkit/query (without dependencies) (cjs, production.min.cjs) 9.2 KB (+0.04% 🔺)

@markerikson
Copy link
Collaborator

Given that the only test failure was the TS 4.7 typetests, and that DefinitelyTyped itself only tests against "last 2 years of TS releases", now seems like a good time to update our own TS support matrix to drop support for TS <5.0.

@markerikson markerikson merged commit 0bf074a into master Nov 23, 2024
74 checks passed
@markerikson markerikson deleted the retry-meta-types branch November 23, 2024 21:20
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