From 1e03314551d66e01377ee13d33d88f14d889f9a8 Mon Sep 17 00:00:00 2001 From: Mark Erikson Date: Tue, 10 Dec 2024 18:57:52 -0500 Subject: [PATCH] Revert ref usage tweak --- 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 62d7e6c5a0..87bc531e89 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(undefined) + const storeRef = useRef() if (!storeRef.current) { // Create the store instance the first time this renders storeRef.current = makeStore()