🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

redux-skip-by-action

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-skip-by-action

redux store enhancer that allows skipping subscriber notifications by action metadata

0.1.1
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

This repository is not considered best practices for Redux - for a more appropriate solution to the problem, see redux-batched-actions

redux-skip-by-action

Store enhancer for redux that enables skipping subscriber notifications for individual actions.

npm install --save redux-skip-by-action

Usage

import {createStore, compose} from 'redux';
import skipByAction, {skip} from 'redux-skip-by-action';

const store = compose(skipByAction)(createStore)(reducer, intialState);

// note: skip adds FSA-compliant metadata to the action
store.dispatch(skip({type: SOME_ACTION, payload: somePayload}))

// the above is equivalent to
store.dispatch({type: SOME_ACTION, payload: somePayload, meta: {skip: true}})

Thanks

Thanks to Terry Appleby for redux-batched-subscribe.

Keywords

redux

FAQs

Package last updated on 19 Oct 2015

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