How to use:
example for some ./connector.js
import { asyncConnect } from 'redux-connect';
import asyncLoader from 'redux-async-dispatch';
const mapAsyncActions = [{
promise: ({ store: { dispatch, getState } }) =>
asyncLoader(dispatch, getState(), [
[getSomeState, loadSomething], // first array parameter function with @return boolean or boolean
[false, loadSomething5], // if false will load
dispatch(loadSomething2()),
loadSomething3,
loadSomething4, // load without check state by loaded data
]),
}];
const mapStateToProps = () => ({});
export default asyncConnect(mapAsyncActions, mapStateToProps)(Component);