redux-saga-combine-watchers
Redux-Saga combine watchers util
Install
npm install --save redux-saga-combine-watchers
About
combineWatchers
is a simple util, ultra small (0.6 kb gzipped) that helps you organize your saga watchers easily without worrying about the way that you export watchers from your saga files.
Example
store/sagas/usersSaga.js
; ; ; ; const usersEndpoint = '...' { const users = ; } { const users = ; } { } { } const userWatchers = getUsersWatcher getCurrentUserWatcher
store/sagas/imagesSaga.js
; ; ; ; const imagesEndPoint = '...' { const images = ; } {
store/sagas/index.js
; ; ; ;
License
MIT © rasha08