mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
fix(maps/values): modify directly next input cache instead of defer to end
- solves test `destruction of active scope in values` without twice runs
This commit is contained in:
parent
fb30f84596
commit
36eb9b0433
1 changed files with 1 additions and 0 deletions
|
|
@ -127,6 +127,7 @@ local function values<K, VI, VO>(input: () -> Map<K, VI>, transform: (VI, () ->
|
||||||
|
|
||||||
local function update_children(data: Map<K, VI>)
|
local function update_children(data: Map<K, VI>)
|
||||||
local cur_input_cache, new_input_cache = cur_input_cache_up, new_input_cache_up
|
local cur_input_cache, new_input_cache = cur_input_cache_up, new_input_cache_up
|
||||||
|
cur_input_cache_up = new_input_cache
|
||||||
|
|
||||||
if flags.strict then
|
if flags.strict then
|
||||||
local cache = {}
|
local cache = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue