redux-saga-routines icon indicating copy to clipboard operation
redux-saga-routines copied to clipboard

Looks like mistake in docs

Open shapkarin opened this issue 4 years ago • 0 comments

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'  } }

shapkarin avatar Aug 07 '20 00:08 shapkarin