From 36eeb2f62ede9f095cc9e1d2ad0f26a3f439e73f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Pla=C4=8Dek?= <11457665+urugator@users.noreply.github.com> Date: Sat, 1 Jul 2023 13:50:02 +0200 Subject: [PATCH] fix comment --- packages/mobx-react-lite/src/useObserver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mobx-react-lite/src/useObserver.ts b/packages/mobx-react-lite/src/useObserver.ts index 97225becf..8685d77cf 100644 --- a/packages/mobx-react-lite/src/useObserver.ts +++ b/packages/mobx-react-lite/src/useObserver.ts @@ -35,7 +35,7 @@ function createReaction(adm: ObserverAdministration) { // BC adm.stateVersion = Symbol() } - // Force update won't be avaliable until the component "mounts". + // onStoreChange won't be avaliable until the component "mounts". // If state changes in between initial render and mount, // `useSyncExternalStore` should handle that by checking the state version and issuing update. adm.onStoreChange?.()