Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Saga alternative for Vue

I finished learning Vue.js, it has had almost all I wanted from it! But I can't find something similar to redux-saga. It was a very great tool, and it would be nice to have something like this.

Can someone propose alternative library, or share experience how to manage big projects with complex data-flow without redux-saga.

Did someone try to connect Redux-saga to Vue and use it (e.g. with that library)? What was the experience?

like image 317
Arseniy-II Avatar asked Oct 29 '22 04:10

Arseniy-II


1 Answers

Have the same problem. I created new package called vuex-coolstory cause other packages is outdated.

Plus I did not use vuex actions to dispatch saga actions. I created new function store.sagaDispatch() and mapSagaActions() helper function for that. I had to stop using vuex actions for saga actions, cause I must define them in store. And there are will be a lot unused empty functions. If you not define it in store, vuex print error message every time when you dispact action.

like image 58
Niklv Avatar answered Nov 15 '22 06:11

Niklv