Closed voidxnull closed 7 years ago
Also had some experience with redux-saga.
There is alot of magic inside. And it's even easier to support our actions+triggers than always guessing and trying to realize what's going on inside sagas.
Also it's generator based and looks like step backward. Async/await is much more clean and understandable.
(updated comment above)
This issue contains a list of possible refactorings which will help to reduce the cost of further developing/maintenance.
[x] Bring the format of action objects to Flux Standard Action. This will make it possible to process errors and 'not found' cases more easily since every FSA can represent an error. It will also allow us to create actions with less code using something like https://github.com/acdlite/redux-actions. Issue: #738
[ ]
Replace triggers with async actions. I wrote down a list of reasons in #667. I propose redux-saga as the most documented solution.[ ] Use normalizr to process nested models. Currently, we write a lot of code for this.
[ ]
Consider organizing redux code into modules (https://github.com/erikras/ducks-modular-redux) to simplify the application structure. It might be worth reading this.WIP