Skip to content

Commit

Permalink
Fix typo in prevent-rerenders-with-use-shallow.md (#2364)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeZery authored Feb 28, 2024
1 parent 3c6dc2d commit 827d5aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/prevent-rerenders-with-use-shallow.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`!

Expand Down

0 comments on commit 827d5aa

Please sign in to comment.