This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
Expose GetPropertyChangedSignal declaratively #28
Labels
feature: planned
A feature that's been accepted into the project's roadmap.
Right now, you can connect to the
Changed
event in Roact easily withRoact.Event.Changed
, but usingGetPropertyChangedSignal(name)
on a specific property is much more performant and is much cleaner.Roact makes that painful right now -- the only way right now is to connect in
didMount
and disconnect inwillUnmount
, typical for wrappers around APIs like this.I think we can make Roact support
GetPropertyChangedSignal
as a first-class citizen for events.The text was updated successfully, but these errors were encountered: