Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 2.39 KB

CHANGELOG.md

File metadata and controls

27 lines (24 loc) · 2.39 KB

Roact Changelog

Current master branch

  • Renamed Roact.reify to Roact.mount and Roact.teardown to Roact.unmount (#82)
    • The old methods are still present as aliases, but will output a warning when used.
  • Added Roact.Change for subscribing to GetPropertyChangedSignal (#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)

1.0.0 Prerelease 2 (March 22, 2018)

  • 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 using setState (#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

1.0.0 Prerelease 1 (December 1, 2017)

  • Initial pre-release build