affirmation-saga

0.0.5 • Public • Published

what is this?

learn redux-saga structure with login flow

#Installation

npm i affirmation-saga --save

Then...

import {AffirmSaga} from 'affirmation-saga';


function callApis(props) {

try {

const {data, url, post} = props.payload;

     const usersData = yield call(implementPromiseAction, props, function* () {


       const param = {
         data: {...data},
         url: url,
       };

       const api_config = {axios related parameter,...param};

       return yield call(() => axios(api_config));
     });

     return usersData;

} catch (e) {...}
}

Options

get two more option in to show how to use react-saga with redux-persist

Package Sidebar

Install

npm i affirmation-saga

Weekly Downloads

1

Version

0.0.5

License

ISC

Unpacked Size

281 kB

Total Files

70

Last publish

Collaborators

  • parthshiroya