Skip to content

Commit

Permalink
Fix type in nextjs.md (#2530)
Browse files Browse the repository at this point in the history
There are two typos in the error message argument.
`useCounterStore must be use` => `useCounterStore must be used`
  • Loading branch information
algoORgoal committed May 3, 2024
1 parent e74fdc8 commit 9d24d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides/nextjs.md
Expand Up @@ -142,7 +142,7 @@ export const useCounterStore = <T,>(
const counterStoreContext = useContext(CounterStoreContext)

if (!counterStoreContext) {
throw new Error(`useCounterStore must be use within CounterStoreProvider`)
throw new Error(`useCounterStore must be used within CounterStoreProvider`)
}

return useStore(counterStoreContext, selector)
Expand Down Expand Up @@ -235,7 +235,7 @@ export const useCounterStore = <T,>(
const counterStoreContext = useContext(CounterStoreContext)

if (!counterStoreContext) {
throw new Error(`useCounterStore must be use within CounterStoreProvider`)
throw new Error(`useCounterStore must be used within CounterStoreProvider`)
}

return useStore(counterStoreContext, selector)
Expand Down

0 comments on commit 9d24d11

Please sign in to comment.