Skip to content

v2.0.0

Compare
Choose a tag to compare
@ctrlplusb ctrlplusb released this 21 Mar 10:35

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 of bootstrap alternative name. Your asyncBootstrap 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'))