Skip to content

Releases: ctrlplusb/react-async-bootstrapper

v2.1.1

09 Aug 20:57
Compare
Choose a tag to compare

Patches

v2.1.0

22 Mar 08:54
Compare
Choose a tag to compare

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

21 Mar 10:35
Compare
Choose a tag to compare

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

1.1.2

11 Oct 07:43
Compare
Choose a tag to compare

Patches

  • Updates to latest version of react-tree-walker.: 9371982
  • Adds react 16 as being supported.: 9101e4c

1.1.1

06 Apr 15:50
Compare
Choose a tag to compare

Patches

1.1.0

06 Apr 11:15
Compare
Choose a tag to compare

Minor Changes

  • Allows an additional 'options' parameter to be passed into react-tree-walker.: 4284c3e

1.0.1

05 Apr 10:29
Compare
Choose a tag to compare

Patches

  • Removes error catching as handling by react-tree-walker. Updates to latest react-tree-walker and adds tests.: 132d809

1.0.0

03 Apr 19:44
Compare
Choose a tag to compare

Major Changes

  • Renames asyncBootstrapperTarget to asyncBootstrap.: b3d8924