- Renamed
Roact.reify
toRoact.mount
andRoact.teardown
toRoact.unmount
(#82)- The old methods are still present as aliases, but will output a warning when used.
- Added
Roact.Change
for subscribing toGetPropertyChangedSignal
(#51) - Added the static lifecycle method
getDerivedStateFromProps
(#57) - Allow canceling render by returning nil from setState callback (#64)
- Added
defaultProps
value on stateful components to define values for props that aren't specified (#79) - Added
getElementTraceback
(#81, #93) - Added
createRef
(#70, #92) - Ref switching now occurs in one pass, which should fix edge cases where the result of a ref is
nil
, especially in property changed events (#98)
- Removed
is*Element
methods, this is unlikely to affect anyone (#50) - Added new global configuration API for debug settings (#46)
- Added
Roact.reconcile
, which will be in the guide soon. It's useful for embedding Roact into existing projects! (#44) - Added function variant of
setState
in preparation for async rendering (#39) - Added
Roact.None
to allow removing values from state usingsetState
(#38) setState
will now throw errors if called at the wrong time (#23)- Throw a nicer error when failing to set primitive properties (#21)
- If a bool is detected as a child of a component, it will be ignored, allowing for a shorter conditional rendering syntax! (#15)
- Error messages should make more sense in general
- Got rid of installer scripts in favor of regular model files
- Initial pre-release build