mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
Fix typo in prevent-rerenders-with-use-shallow.md (#2364)
This commit is contained in:
parent
3c6dc2d12b
commit
827d5aacaf
@ -39,7 +39,7 @@ useMeals.setState({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
This change causes `BearNames` rerenders even tho the actual output of `names` has not changed according to shallow equal.
|
This change causes `BearNames` rerenders even though the actual output of `names` has not changed according to shallow equal.
|
||||||
|
|
||||||
We can fix that using `useShallow`!
|
We can fix that using `useShallow`!
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user