mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 03:36:11 +00:00
fix(charm-sync): run addSignalsToClient outside tracking scope
This commit is contained in:
parent
73fbfb2685
commit
c31e5c5a34
2 changed files with 28 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ local function trackSignal<T>(key: string, getter: () -> T, identifier: unknown)
|
|||
local rawInitialValue = toRaw(initialValue)
|
||||
local snapshot = if initialValue ~= rawInitialValue then utils.deepCopy(rawInitialValue) else initialValue
|
||||
|
||||
local dispose = Charm.effect(function()
|
||||
local dispose = Charm.untracked(Charm.effect, function()
|
||||
local newValue = getter()
|
||||
local rawValue = toRaw(newValue)
|
||||
local isReactive = newValue ~= rawValue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue