Skip to content

Commit 5d82a7b

Browse files
committed
Optimization: don't send committedState, but extract from computedStates
1 parent d81a7de commit 5d82a7b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
"react-redux": "^4.4.5",
7979
"redux": "^3.5.2",
8080
"redux-devtools": "^3.3.1",
81-
"redux-devtools-instrument": "^1.3.2",
82-
"remotedev-app": "^0.8.2",
81+
"redux-devtools-instrument": "^1.3.3",
82+
"remotedev-app": "^0.9.0-beta",
8383
"remotedev-slider": "^1.1.1",
8484
"remotedev-utils": "0.0.1"
8585
}

src/app/api/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function toContentScript(message, serializeState, serializeAction, should
3737
message.payload = rest;
3838
message.actionsById = stringify(actionsById, serializeAction);
3939
message.computedStates = stringify(computedStates, serializeState);
40-
message.committedState = stringify(committedState, serializeState);
40+
message.committedState = typeof committedState !== 'undefined';
4141
}
4242
}
4343
message.serialize = shouldSerialize;

test/app/inject/api.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('API', () => {
7373
serialize: undefined,
7474
actionsById: undefined,
7575
computedStates: undefined,
76-
committedState: undefined,
76+
committedState: false,
7777
instanceId: undefined,
7878
name: '',
7979
source: '@devtools-page'

0 commit comments

Comments
 (0)