Closed lukadev-0 closed 3 weeks ago
The merge function does not actually overwrite any values when overwrite is not set to "none".
merge
overwrite
"none"
If you call innerScope with a table containing an existing property on the scope, it will not overwrite that property.
innerScope
local scope = Fusion.scoped({ a = 5 }) local newScope = Fusion.innerScope(scope, { a = 6 }) print(newScope.a) -- 5
The
merge
function does not actually overwrite any values whenoverwrite
is not set to"none"
.If you call
innerScope
with a table containing an existing property on the scope, it will not overwrite that property.