Skip to content

Commit

Permalink
PropsWithChildren
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Sep 4, 2023
1 parent df1d6f4 commit 86bbe1e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/react-query/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
ReactElement,
useContext as _useContext,
useEffect,
PropsWithChildren,
} from "react";
import {
QueryClient,
Expand Down Expand Up @@ -149,12 +150,7 @@ export function createReactQueryHooks<P extends ProceduresDef>() {
children,
client,
queryClient,
}: {
children?: ReactElement;
client: AlphaClient<P>;
// TODO: Remove this arg and infer from React context?
queryClient: QueryClient;
}) => (
}: PropsWithChildren<Context<P>>) => (
<Context.Provider
value={{
client,
Expand Down

1 comment on commit 86bbe1e

@tomheaton
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice fix, spotted this today 👍

Please sign in to comment.