Skip to content

Commit

Permalink
fix: received props on qiankun slave update (#12337)
Browse files Browse the repository at this point in the history
  • Loading branch information
fz6m authored Apr 29, 2024
1 parent 3e291e5 commit d16471a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/plugins/libs/qiankun/master/MicroApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ export const MicroApp = forwardRef(
props: { settings: settingsFromConfig = {}, ...propsFromConfig } = {},
} = appConfig || {};

const __globalRoutesInfo = {
appNameKeyAlias,
masterHistoryType,
base: globalSettings.base,
microAppRoutes: globalSettings.microAppRoutes,
};

useEffect(() => {
setComponentError(null);
setLoading(true);
Expand All @@ -185,12 +192,7 @@ export const MicroApp = forwardRef(
...propsFromConfig,
...stateForSlave,
...propsFromParams,
__globalRoutesInfo: {
appNameKeyAlias,
masterHistoryType,
base: globalSettings.base,
microAppRoutes: globalSettings.microAppRoutes,
},
__globalRoutesInfo,
setLoading,
},
},
Expand Down Expand Up @@ -263,6 +265,7 @@ export const MicroApp = forwardRef(
...propsFromConfig,
...stateForSlave,
...propsFromParams,
__globalRoutesInfo,
setLoading,
};

Expand Down

0 comments on commit d16471a

Please sign in to comment.