Releases: ctrlplusb/react-async-bootstrapper
Releases · ctrlplusb/react-async-bootstrapper
v2.1.1
v2.1.0
Minor Changes
- Exposes a 'reactAsyncBootstrapperRunning' context to the component tree when executing.: 2c1c177
This allows you do tap the context in order to be aware your component is being executed within the async bootstrap cycle.
e.g.
componentWillMount() {
console.log(this.context.reactAsyncBootstrapperRunning) // true
}
v2.0.0
Major Changes
- Upgrades to
react-tree-walker
v4, which has slightly different execution behaviour. Please go read release notes for it. - Deprecates
asyncBootstrap
method on your components in favour ofbootstrap
alternative name. YourasyncBootstrap
methods will still work, however you will get a deprecation warning printed.
Minor Changes
- Adds the ability to specify a React Context that will be available to your Components within the bootstrapping process. This is exposed as a third parameter to your components.
class Foo extends Component {
bootstrap() {
console.log(this.context.asyncBootstrapPhase)
}
render() {
return <div>foo</div>
}
}
bootstrapper(<Foo />, null, { asyncBootstrapPhase: true })
.then(() => console.log('done'))