centau / vide

A reactive Luau library for creating UI.
https://centau.github.io/vide/
MIT License
88 stars 15 forks source link

allow fragments in implicit effects for children #29

Closed alicesaidhi closed 2 months ago

alicesaidhi commented 2 months ago

makes the algorithm that parents children to a Instance recursive to better support fragments

alicesaidhi commented 2 months ago

this should make the following story render correctly, where previously it would not render due to the algorithm not being recursive

return function(target)
    return vide.mount(function()
        return {
            {
                vide.create "Frame" {
                    Size = UDim2.fromScale(0.5, 0.5)
                }
            }
        }
    end, target)
end