1.0.4 • Published 7 years ago

redux-async-dispatch v1.0.4

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

redux-async-dispatch

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
      loadOther(), // load without check state by loaded data
    ]),
}];

const mapStateToProps = () => ({});

export default asyncConnect(mapAsyncActions, mapStateToProps)(Component);
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago