From 17b208a91f1ffac09010b7447320e65c071fb90a Mon Sep 17 00:00:00 2001 From: David <71749524+f312213213@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:56:25 +0800 Subject: [PATCH] docs: fix typo in Prevent rerenders with useShallow section (#2761) --- 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.