From cae765aab6bf35960cd61f3338b267fb8fc05a09 Mon Sep 17 00:00:00 2001 From: Teos <47872542+teofanis@users.noreply.github.com> Date: Tue, 20 Feb 2024 17:41:37 +0000 Subject: [PATCH] fix: avoid functional call on null --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }, []);