Skip to content

Commit 1e03314

Browse files
committed
Revert ref usage tweak
1 parent 4536214 commit 1e03314

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>(undefined)
184+
const storeRef = useRef<AppStore>()
185185
if (!storeRef.current) {
186186
// Create the store instance the first time this renders
187187
storeRef.current = makeStore()

0 commit comments

Comments
 (0)