Skip to content

Commit 97eb9d3

Browse files
committed
Support cases when the store is created twice
Like in #93
1 parent 5e4a75d commit 97eb9d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/browser/extension/inject/pageScript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ window.devToolsExtension = function(config = {}) {
171171
const store = next(reducer, initialState, enhancer);
172172
liftedStore = store.liftedStore;
173173
store.subscribe(() => {
174+
if (liftedStore !== store.liftedStore) liftedStore = store.liftedStore;
174175
handleChange(store.getState(), liftedStore.getState());
175176
});
176177
return store;

0 commit comments

Comments
 (0)