From 62bb2baba7153e20332ec15ec4aae0e844d84f69 Mon Sep 17 00:00:00 2001 From: Eugene Chybisov <18644653+chybisov@users.noreply.github.com> Date: Tue, 29 Nov 2022 16:00:21 +0100 Subject: [PATCH] fix(docs): fix to -> do typo --- docs/integrations/updating-draft-states.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/integrations/updating-draft-states.md b/docs/integrations/updating-draft-states.md index 4130645cc..6ca475dcb 100644 --- a/docs/integrations/updating-draft-states.md +++ b/docs/integrations/updating-draft-states.md @@ -111,7 +111,7 @@ If you are using `Immer`, make sure you are actually following the rules of For example, you have to add `[immerable] = true` for [class objects](https://immerjs.github.io/immer/complex-objects) to work. If -you don't to this, `Immer` will still mutate the object, but not as a proxy, so +you don't do this, `Immer` will still mutate the object, but not as a proxy, so it will also update the current state. `Zustand` checks if the state has actually changed, so since both the current state as well as the next state are equal (if you don't do it correctly), it will skip calling the subscriptions.