anymore1405 / redux-toolkit-saga

Style redux-saga like @reduxjs/toolkit
https://khactai14052000.gitbook.io/redux-toolkit-saga/
MIT License
30 stars 3 forks source link

How to use this library? #2

Open chungchi300 opened 4 years ago

chungchi300 commented 4 years ago

I like the concept, the ecosystem of the saga in redux-toolkit is bad due to the default async tool is redux-thunk

anymore1405 commented 4 years ago

Sorry, my documentation is sketchy. I will update the new document next time. Hope that helps you. 🥳

pock999 commented 3 years ago

Excuse me, Is there an example of use? I like this combination, because I hope it will be more convenient when I use redux-saga.

b-derksen commented 3 years ago

It would be nice to also see the RootReducer and your store, so we can see how you implemented this

87vrvk9k commented 3 years ago

It would be nice to also see the RootReducer and your store, so we can see how you implemented this

I was a bit confused by it and don't think this API makes sense really, Sagas don't correlate to a slice of the state tree so why would you call it createSliceSaga, Sagas are intermediary action handlers responsible for managing/triggering side effects, including additional actions which are responsible for updating the state.