Skip to content

Commit

Permalink
Add support for Redux 4.x (#490)
Browse files Browse the repository at this point in the history
* Add support for Redux 4.x

* Remove react-dom from peerDependencies

* Add redux 4.x for npm package

* Add react-dom as peerDependencies

* Revert package.json in the root

* Handle redux init action
  • Loading branch information
ApacheEx authored and jhen0409 committed Jun 15, 2018
1 parent 401bf80 commit 7db8972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion npm-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"author": "Mihail Diordiev <zalmoxisus@gmail.com> (https://github.com/zalmoxisus)",
"license": "MIT",
"peerDependencies": {
"redux": "^3.1.0"
"redux": "^3.1.0 || ^4.0.0"
}
}
2 changes: 1 addition & 1 deletion src/app/service/Monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class Monitor {
this.active = false;
clearTimeout(this.waitingTimeout);
};
isHotReloaded = () => this.lastAction === '@@redux/INIT';
isHotReloaded = () => this.lastAction.indexOf('@@redux/INIT') === 0;
isMonitorAction = () => this.lastAction && this.lastAction !== 'PERFORM_ACTION';
isTimeTraveling = () => this.lastAction === 'JUMP_TO_STATE';
isPaused = () => {
Expand Down

0 comments on commit 7db8972

Please sign in to comment.