Skip to content

Commit b593027

Browse files
Merge pull request #10 from nishanbajracharya/readme
Update readme to include redux-state-loader
2 parents fccb996 + b0cf2af commit b593027

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
[![Build Status](https://travis-ci.org/nishanbajracharya/redux-loader.svg?branch=master)](https://travis-ci.org/nishanbajracharya/redux-loader)
2-
[![Package version](https://img.shields.io/badge/version-0.1.4-green.svg)](https://github.com/nishanbajracharya/redux-loader)
1+
[![Build Status](https://travis-ci.org/nishanbajracharya/redux-state-loader.svg?branch=master)](https://travis-ci.org/nishanbajracharya/redux-state-loader)
2+
[![Package version](https://img.shields.io/badge/version-0.1.4-green.svg)](https://github.com/nishanbajracharya/redux-state-loader)
33

44

5-
# Redux Loader
5+
# Redux State Loader
66
A redux middleware to handle loading states triggered through start and stop actions.
77

88
## Why would I need this?
9-
Ever wanted a loading indicator while you are fetching a large amount of data. Ever wanted to block a submit button from being clicked again after you have submitted a form. Then this is the solution for you. Instead of going through the hassle of maintaining loading states for your buttons and containers, `redux-loader` does it for you.
9+
Ever wanted a loading indicator while you are fetching a large amount of data. Ever wanted to block a submit button from being clicked again after you have submitted a form. Then this is the solution for you. Instead of going through the hassle of maintaining loading states for your buttons and containers, `redux-state-loader` does it for you.
1010

1111
## Getting started
12-
The first step is to add `redux-loader` into your project.
12+
The first step is to add `redux-state-loader` into your project.
1313

1414
```
15-
npm install --save nishanbajracharya/redux-loader
15+
npm install --save redux-state-loader
1616
```
1717

1818
> Note: The package itself has no dependencies but would be useless without [Redux](https://redux.js.org/).
@@ -22,7 +22,7 @@ The next step is to register the middleware in the redux store.
2222
```js
2323
//store.js
2424

25-
import { reduxLoaderReducer, reduxLoaderMiddleware } from 'redux-loader';
25+
import { reduxLoaderReducer, reduxLoaderMiddleware } from 'redux-state-loader';
2626
import { applyMiddleware, createStore, compose, combineReducers } from 'redux';
2727

2828
const loaderMiddleware = reduxLoaderMiddleware();
@@ -78,7 +78,7 @@ unregisterLoader(id: String): Action
7878
Start by importing the action creators.
7979

8080
```js
81-
import { reduxLoaderActions } from 'redux-loader';
81+
import { reduxLoaderActions } from 'redux-state-loader';
8282
```
8383

8484
Next register a loader by supplying a unique id, start actions and stop actions.
@@ -124,7 +124,7 @@ const EnhancedComponent = connect(mapStateToProps)(Component);
124124
You can also manually trigger loading using `startLoading` and `stopLoading` actions.
125125

126126
```js
127-
import { reduxLoaderActions } from 'redux-loader';
127+
import { reduxLoaderActions } from 'redux-state-loader';
128128

129129
// Trigger loading of myLoader
130130
store.dispatch(reduxLoaderActions.startLoading('myLoader'));

0 commit comments

Comments
 (0)