Skip to content

Commit

Permalink
handle getInitialState for queued subapp starts (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip authored Apr 29, 2020
1 parent bb36efb commit 2233fa8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/subapp-web/src/subapp-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@
options._genId = options.name + "_inst_id_" + runtimeInfo.instId++;
}

//
// check and retrieve initialState.
//
if (options.getInitialState) {
options.initialState = options.getInitialState();
}
if (options.group) {
// start subapps as a group
const grpInfo = runtimeInfo.groups[options.group];
Expand Down

0 comments on commit 2233fa8

Please sign in to comment.