New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Maintainers
1
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc