Skip to content

Commit

Permalink
Release v2.7.2
Browse files Browse the repository at this point in the history
Do not try to stop simulation if it hasn't begun
  • Loading branch information
mironov committed Mar 5, 2017
1 parent 650b64c commit 83d21b7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ rules:
no-unexpected-multiline: 2
no-shadow: 1
max-len: ["error", 80]
class-methods-use-this: 0

import/no-duplicates: 2
import/no-commonjs: 2
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release History

## 2.7.2
- Do not try to stop simulation if it hasn't begun

## 2.7.1
- Launch progress simulation only once when loading is increased couple of times

Expand Down
2 changes: 1 addition & 1 deletion build/loading_bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var LoadingBar = exports.LoadingBar = function (_React$Component) {
}, {
key: 'shouldStop',
value: function shouldStop(nextProps) {
return nextProps.loading === 0;
return this.state.progressInterval && nextProps.loading === 0;
}
}, {
key: 'shouldShow',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-redux-loading-bar",
"version": "2.7.1",
"version": "2.7.2",
"description": "Simple Loading Bar for Redux and React",
"main": "build/index.js",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/loading_bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class LoadingBar extends React.Component {
}

shouldStop(nextProps) {
return nextProps.loading === 0
return this.state.progressInterval && nextProps.loading === 0
}

shouldShow() {
Expand Down

0 comments on commit 83d21b7

Please sign in to comment.