Skip to content

Commit

Permalink
Optimization: don't send committedState, but extract from computedStates
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Nov 1, 2016
1 parent d81a7de commit 5d82a7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
"react-redux": "^4.4.5",
"redux": "^3.5.2",
"redux-devtools": "^3.3.1",
"redux-devtools-instrument": "^1.3.2",
"remotedev-app": "^0.8.2",
"redux-devtools-instrument": "^1.3.3",
"remotedev-app": "^0.9.0-beta",
"remotedev-slider": "^1.1.1",
"remotedev-utils": "0.0.1"
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function toContentScript(message, serializeState, serializeAction, should
message.payload = rest;
message.actionsById = stringify(actionsById, serializeAction);
message.computedStates = stringify(computedStates, serializeState);
message.committedState = stringify(committedState, serializeState);
message.committedState = typeof committedState !== 'undefined';
}
}
message.serialize = shouldSerialize;
Expand Down
2 changes: 1 addition & 1 deletion test/app/inject/api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('API', () => {
serialize: undefined,
actionsById: undefined,
computedStates: undefined,
committedState: undefined,
committedState: false,
instanceId: undefined,
name: '',
source: '@devtools-page'
Expand Down

0 comments on commit 5d82a7b

Please sign in to comment.