Skip to content

Commit

Permalink
Revert ref usage tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Dec 10, 2024
1 parent 4536214 commit 1e03314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage/nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default function StoreProvider({
children: React.ReactNode
}) {
// highlight-start
const storeRef = useRef<AppStore>(undefined)
const storeRef = useRef<AppStore>()
if (!storeRef.current) {
// Create the store instance the first time this renders
storeRef.current = makeStore()
Expand Down

0 comments on commit 1e03314

Please sign in to comment.