kennethloeffler / anatta

Anatta is a library that integrates the ECS pattern into Roblox.
https://kennethloeffler.github.io/anatta/
MIT License
38 stars 1 forks source link

Early out from `Dom.waitForRefs` when a type contains no refs #120

Closed kennethloeffler closed 2 years ago

kennethloeffler commented 2 years ago

This PR addresses problems with using Dom.waitForRefs generically. Previously, a consumer had to inspect the type definition themselves to determine whether or not to use waitForRefs for a given type, but with this change, they can safely use it without such a check.