From 70307c8b2ccb1c5b149bb31c8dc2b241478c4273 Mon Sep 17 00:00:00 2001 From: Mainendra <1897340+mainendra@users.noreply.github.com> Date: Sat, 31 May 2025 20:26:12 -0400 Subject: [PATCH] Fixed updateFn doc --- docs/quick-start.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/quick-start.md b/docs/quick-start.md index 041b502..e7acdfb 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -37,7 +37,7 @@ You can even transform the data before it's updated: ```typescript const count = new Store(12, { updateFn: (prevValue) => updateValue => { - return updateValue + prevValue; + return updateValue(prevValue) + previous; } });