We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c831b2b commit 4e6669cCopy full SHA for 4e6669c
src/app/service/Monitor.js
@@ -2,8 +2,8 @@ export default class Monitor {
2
constructor(update) {
3
this.update = update;
4
}
5
- reducer = (state, action) => {
6
- if (!this.active) return undefined;
+ reducer = (state = {}, action) => {
+ if (!this.active) return state;
7
this.lastAction = action.type;
8
if (action.type === 'LOCK_CHANGES') {
9
window.__REDUX_DEVTOOLS_EXTENSION_LOCKED__ = action.status;
@@ -13,7 +13,7 @@ export default class Monitor {
13
// Send new lifted state on hot-reloading
14
setTimeout(this.update, 0);
15
16
- return undefined;
+ return state;
17
};
18
start = (skipUpdate) => {
19
this.active = true;
0 commit comments