Skip to content

Commit 722e05b

Browse files
committed
missed a React.ReactNode
1 parent 0e40281 commit 722e05b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/preact-query/src/HydrationBoundary.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type {
99
QueryClient,
1010
} from '@tanstack/query-core'
1111
import { useEffect, useMemo, useRef } from 'preact/hooks'
12+
import { ComponentChildren } from 'preact'
1213

1314
export interface HydrationBoundaryProps {
1415
state: DehydratedState | null | undefined
@@ -18,7 +19,7 @@ export interface HydrationBoundaryProps {
1819
'mutations'
1920
>
2021
}
21-
children?: React.ReactNode
22+
children?: ComponentChildren
2223
queryClient?: QueryClient
2324
}
2425

@@ -107,5 +108,5 @@ export const HydrationBoundary = ({
107108
}
108109
}, [client, hydrationQueue])
109110

110-
return children as React.ReactElement
111+
return children as ComponentChildren
111112
}

0 commit comments

Comments
 (0)