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