dphfox / Fusion

A modern reactive UI library, built specifically for Roblox and Luau.
https://elttob.uk/Fusion/
MIT License
585 stars 102 forks source link

Change `Fusion.doCleanup` to no longer be variadic #333

Closed 4812571 closed 4 months ago

4812571 commented 4 months ago

There is no need for Fusion.doCleanup to accept variadic arguments anymore, as one could simply pass in a table (scope) anyways.

Fusion.doCleanup(a, b, c)

Can now be expressed as:

Fusion.doCleanup({a, b, c})

This makes the implementation and especially the typing of Fusion.doCleanup much simpler.

dphfox commented 4 months ago

Thanks for updating the docs too!