From e9acc6ca8e78b8f32adc3e056bb11dcf7004e4ba Mon Sep 17 00:00:00 2001 From: Mohit Tokas Date: Fri, 10 Jan 2025 15:58:28 +0530 Subject: [PATCH] Update nextjs.mdx add null as useRef initial value --- docs/usage/nextjs.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage/nextjs.mdx b/docs/usage/nextjs.mdx index 66b692c993..147fedb609 100644 --- a/docs/usage/nextjs.mdx +++ b/docs/usage/nextjs.mdx @@ -181,7 +181,7 @@ export default function StoreProvider({ children: React.ReactNode }) { // highlight-start - const storeRef = useRef() + const storeRef = useRef(null) if (!storeRef.current) { // Create the store instance the first time this renders storeRef.current = makeStore()