0.0.5 • Published 2 years ago

affirmation-saga v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago