johanneslumpe / redux-history-transitions

history transitions based on arbitrary actions
MIT License
167 stars 10 forks source link

Async action #6

Closed aoshi321 closed 8 years ago

aoshi321 commented 8 years ago

Hi

Is this able to handle an async action?

thanks

johanneslumpe commented 8 years ago

@aoshi321 Yes. You get the action passed to the transition handler and you can inspect it. So if you for example add a meta object to the action, which has a done prop, then you can set it to true when the async action is completed. You can use that field to determine whether to return a transition value or not.