Skip to content

Commit

Permalink
only call reduxCreateStore if it's user provided (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip authored Jan 14, 2020
1 parent 7966069 commit 8d12e0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/subapp-redux/src/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ function createSharedStore(initialState, info) {
return store;
}

if (info.reduxCreateStore) {
// call user provided reduxCreateStore
if (info.reduxCreateStore && !info._genReduxCreateStore) {
return info.reduxCreateStore(initialState);
}

Expand Down

0 comments on commit 8d12e0d

Please sign in to comment.