steelsojka / aurelia-redux-plugin

A Redux plugin for the Aurelia framework
MIT License
17 stars 4 forks source link

Add support for async actions #3

Closed dpinart closed 7 years ago

dpinart commented 7 years ago

Hi, First of all, congratulations for the good work

It would be interesting to support async actions. Currently, using one of the existing middlewares like redox-thunk or redux-promise overrides the dispatch wrapper and avoids the select decorator to get notified when async actions update the state.

I think it would be really easy to implement this feature by just checking at Store.dispatch method if action is a promise, a function or a standard action.

steelsojka commented 7 years ago

Done! Thanks for the contribution. I'll get unit tests written soon... If there are any problems let me know!