New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@chegg/redux-loading-queue

Package Overview
Dependencies
Maintainers
8
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chegg/redux-loading-queue

React loading component for multiple Redux actions

  • 1.1.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
8
Weekly downloads
 
Created
Source

Redux Loading Queue

A loading queue for Redux

npm install --save @chegg/redux-loading-queue

Usage

Add the loadingReducer to your store under loading.

import { createStore, combineReducers } from 'redux'
import { loadingReducer } from '@chegg/redux-loading-queue'

const store = createStore(
  combineReducers({
    loading: loadingReducer
  })
)

To add or remove an item with a certain id to the loading queue, use the provided actions.

import { loadingShow, loadingHide } from '@chegg/redux-loading-queue'

const uuid = '123e4567-e89b-12d3-a456-426655440000'

store.dispatch(loadingShow(uuid))

store.dispatch(loadingHide(uuid))

Wrap your loading view with AppLoading. The view will show as long as at least one item is in the queue.

<AppLoading>
  <div>Loading..</div>
</AppLoading>

Maintainers

Philip Stewart (@sodoku)

Yvan Volochine (@gusano)

License

Apache v2, Copyright 2016 Chegg Inc.

Keywords

FAQs

Package last updated on 24 Oct 2017

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