fix(charm-sync): run addSignalsToClient outside tracking scope

This commit is contained in:
littensy 2026-09-30 19:06:38 -07:00
parent 73fbfb2685
commit c31e5c5a34
2 changed files with 28 additions and 1 deletions

View file

@ -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