mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Implement delays for show() and switch()
This commit is contained in:
parent
2518e292ed
commit
5262ef711c
6 changed files with 376 additions and 216 deletions
|
|
@ -148,6 +148,10 @@ local update_queue = { n = 0 } :: { n: number, [number]: Node<any> }
|
|||
|
||||
local function evaluate_node<T>(node: Node<T>)
|
||||
if flags.strict then
|
||||
if table.find(scopes, node) then
|
||||
error("a scope, that should rerun due to the update of a source, is already active", 0)
|
||||
end
|
||||
|
||||
local initial_value = node.cache
|
||||
|
||||
for i = 1, 2 do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue