Skip to content

Commit

Permalink
docs: typo & improve (#2891)
Browse files Browse the repository at this point in the history
* chore: typo

* docs: update
  • Loading branch information
Wxh16144 authored Dec 10, 2024
1 parent 3fdf3c9 commit a958de9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/apis/create-with-equality-fn.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const useAgeStore = createWithEqualityFn<AgeStore>()(
)

export default function App() {
const age = useAgeStore((state) => stage.age)
const age = useAgeStore((state) => state.age)
const setAge = useAgeStore((state) => state.setAge)

function increment() {
Expand Down
4 changes: 3 additions & 1 deletion docs/hooks/use-store-with-equality-fn.md
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,9 @@ const CounterStoresProvider = ({ children }) => {
)

return (
<CounterStoresContext.Provider>{children}</CounterStoresContext.Provider>
<CounterStoresContext.Provider value={stores}>
{children}
</CounterStoresContext.Provider>
)
}
```
Expand Down
4 changes: 3 additions & 1 deletion docs/hooks/use-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,9 @@ const CounterStoresProvider = ({ children }) => {
)

return (
<CounterStoresContext.Provider>{children}</CounterStoresContext.Provider>
<CounterStoresContext.Provider value={stores}>
{children}
</CounterStoresContext.Provider>
)
}
```
Expand Down

0 comments on commit a958de9

Please sign in to comment.