Closed ericklombardo closed 1 year ago
I have the following error using react 18
TS2559: Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & QueryClientProviderProps.
For a temporary fix i am doing the following:
Redeclaring the type QueryClientProviderProps and include the children prop
declare type QueryClientProviderProps = { env?: any; initialData?: any; children: React.ReactNode; };
Then in my code export the QueryClientProvider with the new type defined above
export QueryClientProvider const QueryClientProvider: FC<QueryClientProviderProps> = context.QueryClientProvider;
Fixed in 2.0.7
I have the following error using react 18
TS2559: Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & QueryClientProviderProps.
For a temporary fix i am doing the following:
Redeclaring the type QueryClientProviderProps and include the children prop
Then in my code export the QueryClientProvider with the new type defined above