Socket
Book a DemoInstallSign in
Socket

redux-saga-takex

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-saga-takex

A powerful take effect accepting RegExp instead of listing action types.

dev
latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

NPM Package Dependency Status

redux-saga-takex

A powerful take effect accepting RegExp instead of listing action types.

NOTICE: This package is still under development.

TL; DR

Before

// Ooops, so long...
const action = yield take(['SUCCESS_LOGIN', 'SUCCESS_LOGOUT', 'SUCCESS_GET_HOGE', 'SUCCESS_PUT_HOGE', ...]);

After

const action = yield takex(/^SUCCESS_/);

Usage

Install package from npm

npm install --save redux-saga-takex

Then import and use it in your saga.

import takex from 'redux-saga-takex';

// ...


function* mySaga() {
  const { payload } = yield takex(/^SUCCESS_/);

  // ...
}

Example

WIP

Development

Setup & Build

npm install
npm run build

Changelog

See the Releases page on GitHub.

License

MIT

Author

Yuki Kodama / @kuy

Keywords

redux

FAQs

Package last updated on 06 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.