Skip to content

Commit

Permalink
Remove store mutations as looking to be not necessary anymore
Browse files Browse the repository at this point in the history
Related to #556
  • Loading branch information
zalmoxisus committed Nov 25, 2018
1 parent 9f6c7aa commit 1c1cd5e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/browser/extension/inject/pageScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,9 @@ const preEnhancer = instanceId => next =>
(reducer, preloadedState, enhancer) => {
const store = next(reducer, preloadedState, enhancer);

// Mutate the store in order to keep the reference
if (stores[instanceId]) {
stores[instanceId] = store;
stores[instanceId].initialDispatch = store.dispatch;
stores[instanceId].liftedStore = store.liftedStore;
stores[instanceId].getState = store.getState;
}

return {
Expand Down

0 comments on commit 1c1cd5e

Please sign in to comment.