Fix type in nextjs.md (#2530)

There are two typos in the error message argument.
`useCounterStore must be use` => `useCounterStore must be used`
This commit is contained in:
Chan 2024-05-03 22:11:32 +09:00 committed by GitHub
parent e74fdc8bc9
commit 9d24d11e1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
@ -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)