This commit is contained in:
Aaron Smith 2023-09-13 18:23:46 +01:00
parent 0d542c66a6
commit 7dead44ac5
9 changed files with 207 additions and 173 deletions

View file

@ -10,8 +10,9 @@ local evaluate_node = graph.evaluate_node
local function derive<T>(fn: () -> T): () -> T
local owner = get_scope()
if not owner then throw("cannot derive in non-reactive scope") end
assert(owner)
if not owner then
throw("cannot derive in non-reactive scope")
end; assert(owner)
local node = create_node(false :: any, fn)