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()