fix: add missing recursed check

This commit is contained in:
littensy 2026-02-17 17:30:51 -08:00
parent 62fc690a7d
commit 1ac071b62a

View file

@ -184,7 +184,7 @@ local function createReactiveSystem(props: {
local flags = sub.flags
if bit32.band(flags, bit32.bor(PENDING, DIRTY)) == PENDING then
sub.flags = bit32.bor(flags, DIRTY)
if bit32.btest(flags, WATCHING) then
if bit32.band(flags, bit32.bor(WATCHING, RECURSED_CHECK)) == WATCHING then
notify(sub)
end
end