We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e40281 commit 722e05bCopy full SHA for 722e05b
1 file changed
packages/preact-query/src/HydrationBoundary.tsx
@@ -9,6 +9,7 @@ import type {
9
QueryClient,
10
} from '@tanstack/query-core'
11
import { useEffect, useMemo, useRef } from 'preact/hooks'
12
+import { ComponentChildren } from 'preact'
13
14
export interface HydrationBoundaryProps {
15
state: DehydratedState | null | undefined
@@ -18,7 +19,7 @@ export interface HydrationBoundaryProps {
18
19
'mutations'
20
>
21
}
- children?: React.ReactNode
22
+ children?: ComponentChildren
23
queryClient?: QueryClient
24
25
@@ -107,5 +108,5 @@ export const HydrationBoundary = ({
107
108
109
}, [client, hydrationQueue])
110
- return children as React.ReactElement
111
+ return children as ComponentChildren
112
0 commit comments