🎨 improve code (#1459)
This commit is contained in:
parent
00e0a8cead
commit
43e50f19e7
|
|
@ -58,8 +58,8 @@ export function getMicroAppStateActions(id: string, isMaster?: boolean): MicroAp
|
|||
console.warn(`[qiankun] '${id}' global listener already exists before this, new listener will overwrite it.`);
|
||||
}
|
||||
deps[id] = callback;
|
||||
const cloneState = cloneDeep(globalState);
|
||||
if (fireImmediately) {
|
||||
const cloneState = cloneDeep(globalState);
|
||||
callback(cloneState, cloneState);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user