QueryClientProvider type issue after upgrading to React 18 #3476

@arunmmanoharan

Description

Describe the bug

When I do a npm run build, I get a type error.

React.FC should accept children by default. Is it a react error or a react-query bug?

Your minimal, reproducible example

export declare const QueryClientProvider: React.FC;

Steps to reproduce

Upgrade app to react 18, both package and types and do a build.

Expected behavior

Build should compile properly.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

Windows 10, node 16

react-query version

3.34.19

TypeScript version

4.6.3

Additional context

No response