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

redux-global-loader

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-global-loader

A Redux Middleware that show a Loading when wait resolve all promise-middleware's promises

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

Redux Global Loader

Build Status Coverage Status

Obs: Redux Promise Middleware is required

A redux middleware with redux-promise-middleware's integration that shows the Loading while there is one or more than one pending promises in the current page. The loading state will be hidden as soon as all Promises gets completed.

Installation

Install with npm
$ npm install --save redux-global-loader
Import the middleware and include it after promiseMiddleware() in your applyMiddleware
import { globalLoaderMiddleware }  from 'redux-global-loader';

composeStoreWithMiddleware = applyMiddleware(
    ...
    promiseMiddleware(),
    globalLoaderMiddleware,
    ...
)(createStore);
Import the reducer loadingAll and include it in the combineReducers
import { combineReducers } from 'redux';
import { loadingAll } from 'redux-global-loader';

...
combineReducers({
    ...
    loadingAll,
    ...
});
...

Usage

import { Loading }  from 'redux-global-loader';

...
render() {
    return (
        <Loading>
            ...
            <!-- Your loading component here -->
            ...
        </Loading>
    );
}
...

Contributing

If you want to contribute with this component: Contributing Documentation.

Keywords

FAQs

Package last updated on 21 Aug 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