Skip to content

v6.1.0: Control state reducer and dispatcher

Compare
Choose a tag to compare
@ghengeveld ghengeveld released this 27 Apr 13:33
· 540 commits to master since this release

This adds two new props/options: reducer and dispatcher. These wrap the internal reducer and dispatcher to allow full control over React Async's internal state management. It also makes invocation of the promiseFn / deferFn part of the dispatched action so it can be delayed, cached or scheduled.

See https://github.com/ghengeveld/react-async/blob/master/README.md#reducer for details.