redux-saga-routines
redux-saga-routines copied to clipboard
Looks like mistake in docs
console.log(routine.failure({ id: 42, error: 'oops...' }));
// { type: 'PREFIX/TRIGGER', payload: { error: true, errorMessage: parseError('oops..') } }
console.log(routine.fulfill({ id: 42, foo: 'bar', baz: 'zab' }));
// { type: 'PREFIX/TRIGGER', payload: {}} }
instead of
console.log(routine.failure({ id: 42, error: true, errorMessage: 'oops..' }));
// { type: 'PREFIX/FAILURE', payload: { id: 42, error: true, errorMessage: 'oops..' } }
console.log(routine.fulfill({ id: 42, foo: 'bar', baz: 'zab' }));
// { type: 'PREFIX/FULFILL', payload: { id: 42, foo: 'bar', baz: 'zab' } }