mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
fix: make toRaw track all calls
This commit is contained in:
parent
9b89284529
commit
189ae0f168
3 changed files with 21 additions and 14 deletions
|
|
@ -88,7 +88,10 @@ local function trackReactive<T>(key: string, proxy: ReactiveProxy<T>)
|
|||
|
||||
trackedState.dispose = Charm.effect(function()
|
||||
api.track()
|
||||
if not config.preserveHistory or firstRun then
|
||||
if not config.preserveHistory then
|
||||
return
|
||||
end
|
||||
if firstRun then
|
||||
firstRun = false
|
||||
else
|
||||
local oldSnapshot = snapshot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue