From b917e91b2482d5558d9bb1ae89c677a173d3ad09 Mon Sep 17 00:00:00 2001 From: "david.chien" Date: Mon, 30 Sep 2024 18:28:08 +0800 Subject: [PATCH] docs: fix typo in Prevent rerenders with useShallow section --- docs/guides/prevent-rerenders-with-use-shallow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/prevent-rerenders-with-use-shallow.md b/docs/guides/prevent-rerenders-with-use-shallow.md index 8bcbe7f8b5..2b19a0dfa9 100644 --- a/docs/guides/prevent-rerenders-with-use-shallow.md +++ b/docs/guides/prevent-rerenders-with-use-shallow.md @@ -6,7 +6,7 @@ nav: 16 When you need to subscribe to a computed state from a store, the recommended way is to use a selector. -The computed selector will cause a rererender if the output has changed according to [Object.is](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is?retiredLocale=it). +The computed selector will cause a rerender if the output has changed according to [Object.is](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is?retiredLocale=it). In this case you might want to use `useShallow` to avoid a rerender if the computed value is always shallow equal the previous one.