New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

redux-chain-actions

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-chain-actions

chain actions for Redux

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
6
100%
Maintainers
1
Weekly downloads
 
Created
Source

#redux-chain-actions redux-chain-actions is a middleware to help us to dispatch action one by one.

##Installation

npm install --save redux-chain-actions

##Usage Should add redux-chain-actions middleware when create store

export const first = (first) => ({
 type: 'first',
});

export const second = (second) => ({
 type: 'second',
});

export const chainAction = (params) => ({
 type: 'test',
 payload: [first, second],
});

When we dispatch chainAction, first and second action will be dispatched one by one.

##Note

  • This middleware will only handle the action which follow FSA, so it's better to use redux-action library to create your action.
  • The chain action should be action creator, this means it should be function, such as first and second.

FAQs

Package last updated on 07 May 2018

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