From a5b8d5472b35e63f86fc3fb9a953f576bd5da920 Mon Sep 17 00:00:00 2001 From: Viki Date: Fri, 6 Sep 2024 15:07:11 +0800 Subject: [PATCH] chore: update jd doc comment --- packages/reactive/src/enhancers/react/with-use-snapshot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/reactive/src/enhancers/react/with-use-snapshot.ts b/packages/reactive/src/enhancers/react/with-use-snapshot.ts index acddb29..8bf3064 100644 --- a/packages/reactive/src/enhancers/react/with-use-snapshot.ts +++ b/packages/reactive/src/enhancers/react/with-use-snapshot.ts @@ -32,7 +32,7 @@ export interface WithUseSnapshotContributes { * ) * * // in normal JS/TS - * console.log(store.useSnapshot(), store.useSnapshot((s) => s.count)) + * console.log(store.snapshot(), store.snapshot((s) => s.count)) * * // in React component * export function App() {