dphfox / Fusion

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

Force evaluations when depending on GraphObjects #354

Closed rdot117 closed 1 week ago

rdot117 commented 1 week ago

This change ensures that GraphObjects are evaluated when they are depended on. The biggest difference is that eager GraphObjects now force evaluations on lazy dependencies and ensure they are actually updated eagerly. Previously eager GraphObjects did not force evaluations, leading to issues where Observers did not update past their initial evaluation when watching a lazy GraphObject, especially since nothing was forcing the lazy GraphObject to update and get out of its invalid condition.