Update changelog

This commit is contained in:
centauri 2025-09-01 22:09:06 +01:00
parent ce24f8ade9
commit 945cdd0e88
2 changed files with 7 additions and 0 deletions

View file

@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
of the condition. of the condition.
- Ignore `false` passed as a child. - Ignore `false` passed as a child.
- Flag `vide.defaults` to disable the setting of default properties. - Flag `vide.defaults` to disable the setting of default properties.
- Delayed scope destruction for control flow functions: `show()` `switch()` `indexes()` `values()`.
### Changed ### Changed

View file

@ -23,6 +23,7 @@ local function update_parent_effect(p: {
return p return p
end end
-- todo: investigate if "count" method used in indexes() and values() can improve performance here
local function update_children_effect(p: { local function update_children_effect(p: {
instance: Instance, instance: Instance,
cur_children_set: { [Instance]: true }, cur_children_set: { [Instance]: true },
@ -39,6 +40,7 @@ local function update_children_effect(p: {
if new_children_set[child] then return end -- stops redundant reparenting if new_children_set[child] then return end -- stops redundant reparenting
new_children_set[child] = true -- record child set from this update new_children_set[child] = true -- record child set from this update
if not cur_children_set[child] then if not cur_children_set[child] then
child.Parent = p.instance -- if child wasn't already parented then parent it child.Parent = p.instance -- if child wasn't already parented then parent it
else else
@ -85,7 +87,9 @@ return {
property = property, property = property,
source = source source = source
}) })
evaluate_node(node) evaluate_node(node)
return node return node
end, end,
@ -94,7 +98,9 @@ return {
instance = instance, instance = instance,
source = parent source = parent
}) })
evaluate_node(node) evaluate_node(node)
return node return node
end, end,