Skip to content

Commit 4e6669c

Browse files
committed
Revert "Don't send monitor state anymore"
This reverts commit 1148224.
1 parent c831b2b commit 4e6669c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/service/Monitor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ export default class Monitor {
22
constructor(update) {
33
this.update = update;
44
}
5-
reducer = (state, action) => {
6-
if (!this.active) return undefined;
5+
reducer = (state = {}, action) => {
6+
if (!this.active) return state;
77
this.lastAction = action.type;
88
if (action.type === 'LOCK_CHANGES') {
99
window.__REDUX_DEVTOOLS_EXTENSION_LOCKED__ = action.status;
@@ -13,7 +13,7 @@ export default class Monitor {
1313
// Send new lifted state on hot-reloading
1414
setTimeout(this.update, 0);
1515
}
16-
return undefined;
16+
return state;
1717
};
1818
start = (skipUpdate) => {
1919
this.active = true;

0 commit comments

Comments
 (0)