Skip to content

Commit

Permalink
feat: listen for the logic of requestHandlersMap config update
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLiangLong committed Jul 7, 2023
1 parent 0e90ea8 commit cec26b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/plugin-designer/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ export default class DesignerPlugin extends PureComponent<PluginProps, DesignerP
locale,
});
});
engineConfig.onGot('requestHandlersMap', (requestHandlersMap) => {
this.setState({
requestHandlersMap,
});
});
const { components, packages, extraEnvironment, utils } = assets;
const state = {
componentMetadatas: components || [],
Expand Down

0 comments on commit cec26b7

Please sign in to comment.