Skip to content

butterproviders/butter-sagas-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Butter Sagas Provider

Create sagas for a butter provider,

this is an adapter,

const createSagaMiddleware = require('redux-saga')
const createStore = require('redux')
const SagasAdapter = require('butter-sagas-provider')
const adapter = SagasAdapter('butter-provider-youtube')

const sagaMiddleware = createSagaMiddleware()

const store = createStore([sagaMiddleware])
adapter.sagas.map(sagaMiddleware.run)

store.dispatch(adapter.actions.FETCH.START())

About

Create sagas for a butter provider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published