score:0

you can do the folloowing: in your mapdispatchtoprops fn return actions like this:

function mapdispatchtoprops(dispatch) {
    return {
         updateactivepage: (pagenumber) => {
            return new promise((resolve, reject) => {
                dispatch(actions.updatevisualstate(pagenumber, resolve, reject));
            });
        }
};

in this case, you will be able to use then for your actions in the view:

this.props.updateactivepage(pagenumber).then(()=>{
  this.props.fetchuserjd(this.props.activepage);
})

you just need to choose the right place to resolve the promise.


Related Query

More Query from same tag