From 9840c536697d722625c44437365a6fce221116a0 Mon Sep 17 00:00:00 2001 From: Francois Best Date: Sat, 7 Dec 2024 21:43:13 +0100 Subject: [PATCH] chore: Fix ref type for React 19 --- packages/docs/src/app/playground/_demos/throttling/client.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/src/app/playground/_demos/throttling/client.tsx b/packages/docs/src/app/playground/_demos/throttling/client.tsx index 6a0fb557..ed881f26 100644 --- a/packages/docs/src/app/playground/_demos/throttling/client.tsx +++ b/packages/docs/src/app/playground/_demos/throttling/client.tsx @@ -31,7 +31,7 @@ export function Client() { ) const router = useRouter() - const timeoutRef = React.useRef() + const timeoutRef = React.useRef(undefined) const [index, setIndex] = React.useState(0) React.useEffect(() => {