React Async Bootstrapper Versions Save

Execute a bootstrap method on your React/Preact components. Useful for data prefetching and other activities.

v2.1.1

5 years ago

Patches

  • Updates deps.: a02183245d9422d4076154ed3dbcddacc8d89f02

v2.1.0

6 years ago

Minor Changes

  • Exposes a 'reactAsyncBootstrapperRunning' context to the component tree when executing.: 2c1c177c4de49d1d783651aa1a934c3599cd9e52

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

6 years ago

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

6 years ago

Patches

  • Updates to latest version of react-tree-walker.: 93719826e92fa0c401d0e59d00b93f669f323e79
  • Adds react 16 as being supported.: 9101e4ca2604650ced75a934bba453c16e9f1af2

1.1.1

7 years ago

Patches

  • Update react-tree-walker dependency: 0746d181ff3d916137e920ec7bd5671d38f4042b (thanks @birkir!)

1.1.0

7 years ago

Minor Changes

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

1.0.1

7 years ago

Patches

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

1.0.0

7 years ago

Major Changes

  • Renames asyncBootstrapperTarget to asyncBootstrap.: b3d89243df9c1a6dcf55ba707cb133162215e79d