0.2.1 • Published 7 years ago
redux-catcher v0.2.1
Redux Catcher
Error handling for redux.
Support Flux Standard Action.
Example action for a rejected Promise:
{
type: 'FAILURE_ADD_TODO',
payload: new Error(),
error: true
}Install
yarn add redux-catcheror
npm i redux-catcherApply middleware
const handler = action => {
console.log(action)
}
import { createCatcher } from 'redux-catcher'
applyMiddleware(
createCatcher(handler)
)TODOs
- Create createCatcher
- Create test
LICENCE
MIT