Skip to content

Commit ba47210

Browse files
authored
Don't need an explicit null
1 parent 17ea636 commit ba47210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/usage/nextjs.mdx

Lines changed: 1 addition & 1 deletion
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>(null)
184+
const storeRef = useRef<AppStore>(null)
185185
if (!storeRef.current) {
186186
// Create the store instance the first time this renders
187187
storeRef.current = makeStore()

0 commit comments

Comments
 (0)