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

fix: type QueryClientProvider children explicitly #3509

Closed
wants to merge 1 commit into from
Closed

fix: type QueryClientProvider children explicitly #3509

wants to merge 1 commit into from

Conversation

filiptammergard
Copy link

@filiptammergard filiptammergard commented Apr 14, 2022

React 18 introduced some breaking type changes. One is that children is no longer implicitly typed with React.FC. This breaks QueryClientProvider, since it relies on implicit children through React.FC. It can be fixed by typing it explicitly, while it will be no change for users of React 17 or lower.

React 18 introduced some breaking type changes. One is that `children` is no longer implicitly typed with `React.FC`. This breaks `QueryClientProvider`, since it relies on implicit children. It can be fixed by typing it explicitly, while it will be no change for users of React 17 or lower.
@vercel
Copy link

vercel bot commented Apr 14, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tanstack/react-query/CbRetss1nDdHdwRdhChupnfh9dCJ
✅ Preview: https://react-query-git-fork-filiptammergard-patch-1-tanstack.vercel.app

@codesandbox-ci
Copy link

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 633ad2f:

Sandbox Source
tannerlinsley/react-query: basic Configuration
tannerlinsley/react-query: basic-typescript Configuration

@TkDodo
Copy link
Collaborator

TkDodo commented Apr 15, 2022

This is the 3rd time a PR for this was opened. While I appreciate the initiative, please look at the other closed PRs for the reasons why we haven't merged them.

@TkDodo TkDodo closed this Apr 15, 2022
@filiptammergard filiptammergard deleted the patch-1 branch April 15, 2022 06:23
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.

None yet

2 participants