@seedrs/redux-sagas

1.5.0 • Public • Published

@seedrs/redux-sagas

npm version Build status semantic-release

A package for reusable sagas.

Setup

# With yarn (preferred)
yarn add @seedrs/redux-sagas
npm i @seedrs/redux-sagas --save

Usage

To use the sagas, you can import them as named imports.

For example:

import { takeEvery } from 'redux-saga/effects';
import { apiRequest } from '@seedrs/redux-sagas';
import { GET_BOOKS_REQUEST } from 'constants/books';
import actions from 'actions/books';

const saga = function* () {
  yield takeEvery(GET_BOOKS_REQUEST, apiRequest, [
    actions.getBooksSuccess,
    actions.getBooksFailure
  ], undefined);
};

export default saga;

For more detailed usage, use the links below:

Readme

Keywords

none

Package Sidebar

Install

npm i @seedrs/redux-sagas

Weekly Downloads

8

Version

1.5.0

License

MIT

Unpacked Size

299 kB

Total Files

36

Last publish

Collaborators

  • jamieseedrs
  • mikevieira99
  • seedrs_tech_admin
  • pramee
  • maliharahman
  • jose.bonnet
  • sadiatasnim
  • gio-seedrs
  • monzoor-morshed
  • asifadnan7
  • rifatc
  • matharotheelf
  • seedrs.bot
  • risheepatel
  • tostasmistas
  • jpxiv
  • seedrs1
  • luisrocha