We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4536214 commit 1e03314Copy full SHA for 1e03314
docs/usage/nextjs.mdx
@@ -181,7 +181,7 @@ export default function StoreProvider({
181
children: React.ReactNode
182
}) {
183
// highlight-start
184
- const storeRef = useRef<AppStore>(undefined)
+ const storeRef = useRef<AppStore>()
185
if (!storeRef.current) {
186
// Create the store instance the first time this renders
187
storeRef.current = makeStore()
0 commit comments