From 86bbe1e6cad900e8b85cc3f5ffd931869bb97dbe Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Mon, 4 Sep 2023 13:08:33 +0800 Subject: [PATCH] PropsWithChildren --- packages/react-query/src/index.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/react-query/src/index.tsx b/packages/react-query/src/index.tsx index 3bc8d002..b068670f 100644 --- a/packages/react-query/src/index.tsx +++ b/packages/react-query/src/index.tsx @@ -5,6 +5,7 @@ import { ReactElement, useContext as _useContext, useEffect, + PropsWithChildren, } from "react"; import { QueryClient, @@ -149,12 +150,7 @@ export function createReactQueryHooks

() { children, client, queryClient, - }: { - children?: ReactElement; - client: AlphaClient

; - // TODO: Remove this arg and infer from React context? - queryClient: QueryClient; - }) => ( + }: PropsWithChildren>) => (