Skip to content

Commit f25ed51

Browse files
committed
Nope, you _do_ need an explicit null
1 parent ba47210 commit f25ed51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/usage/nextjs.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export default function StoreProvider({
181181
children: React.ReactNode
182182
}) {
183183
// highlight-start
184-
const storeRef = useRef<AppStore>(null)
184+
const storeRef = useRef<AppStore | null>(null)
185185
if (!storeRef.current) {
186186
// Create the store instance the first time this renders
187187
storeRef.current = makeStore()

0 commit comments

Comments
 (0)