diff --git a/src/index.tsx b/src/index.tsx index 9ae22b2..2b5208e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -61,7 +61,7 @@ function LazyHydrate(props: Props) { useIsomorphicLayoutEffect(() => { // No SSR Content - if (!childRef.current.hasChildNodes()) { + if (!childRef.current?.hasChildNodes()) { hydrate(); } }, []);