Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Releases: Roblox/roact

Prerelease 2018-06-11

11 Jun 20:51
Compare
Choose a tag to compare
Prerelease 2018-06-11 Pre-release
Pre-release

This is a slightly different prerelease approach leading up to Roact 1.0.

This release rolls up all of the changes since prerelease 2 a couple months ago:

  • 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)

The next release should hopefully be 1.0!

Prerelease 2018-03-22

23 Mar 00:52
Compare
Choose a tag to compare
Prerelease 2018-03-22 Pre-release
Pre-release

This change is a big upgrade from the last prerelease, and encompasses a lot of changes!

As always, check out the docs for the current API.

Changes from 1.0.0 Prerelease 1

  • Added Roact.reconcile, which will be in the guide soon. It's useful for embedding Roact into existing projects!
  • Added new global configuration API for debug settings
  • Added function variant of setState in preparation for async rendering
  • setState will now throw errors if called at the wrong time
  • Removed unused is*Element methods
  • If a bool is detected as a child of a component, it will be ignored, allowing for a shorter conditional rendering syntax!
  • Error messages should make more sense
  • Added Roact.None to allow removing values from state using setState
  • Got rid of installer scripts in favor of regular model files

Installation

Either download the source from this release and copy the lib folder into your project (like if you're using Rojo), or insert the attached rbxmx file into your game's place!

Prerelease 2017-12-01

01 Dec 23:49
Compare
Choose a tag to compare
Prerelease 2017-12-01 Pre-release
Pre-release

This is the first prerelease of Roact!

To install it into Studio, either:

  • Download the source and use the lib directory
  • Download the installer.lua script from this release page and run it using Roblox Studio's "Run Script" menu.