mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Disallow creation of nested tracking scopes
This commit is contained in:
parent
c0c2166edf
commit
38342b3805
6 changed files with 256 additions and 109 deletions
|
|
@ -13,7 +13,7 @@ local function untrack<T>(source: () -> T): T
|
|||
|
||||
-- sources are only tracked if the node in scope has an effect
|
||||
local effect = scope.effect
|
||||
scope.effect = false
|
||||
scope.effect = "untracked"
|
||||
|
||||
local ok, result = pcall(source)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue