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 17ea636 commit ba47210Copy full SHA for ba47210
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 | null>(null)
+ const storeRef = useRef<AppStore>(null)
185
if (!storeRef.current) {
186
// Create the store instance the first time this renders
187
storeRef.current = makeStore()
0 commit comments