mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 03:01:16 +00:00
feat: add componentRenderer lifeCycles log
This commit is contained in:
parent
c23f16d646
commit
3d470cad69
@ -47,11 +47,25 @@ export default function componentRendererFactory(): IBaseRenderComponent {
|
|||||||
return this.__renderComp(Component, this.__renderContextProvider({ compContext: this }));
|
return this.__renderComp(Component, this.__renderContextProvider({ compContext: this }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getComponentName() {
|
||||||
|
return this.props?.componentName;
|
||||||
|
}
|
||||||
|
|
||||||
/** 需要重载下面几个方法,如果在低代码组件中绑定了对应的生命周期时会出现死循环 */
|
/** 需要重载下面几个方法,如果在低代码组件中绑定了对应的生命周期时会出现死循环 */
|
||||||
componentDidMount() {}
|
componentDidMount() {
|
||||||
getSnapshotBeforeUpdate() {}
|
this.__debug(`componentDidMount - ${this.getComponentName()}`);
|
||||||
componentDidUpdate() {}
|
}
|
||||||
componentWillUnmount() {}
|
getSnapshotBeforeUpdate() {
|
||||||
componentDidCatch() {}
|
this.__debug(`getSnapshotBeforeUpdate - ${this.getComponentName()}`);
|
||||||
|
}
|
||||||
|
componentDidUpdate() {
|
||||||
|
this.__debug(`componentDidUpdate - ${this.getComponentName()}`);
|
||||||
|
}
|
||||||
|
componentWillUnmount() {
|
||||||
|
this.__debug(`componentWillUnmount - ${this.getComponentName()}`);
|
||||||
|
}
|
||||||
|
componentDidCatch() {
|
||||||
|
this.__debug(`componentDidCatch - ${this.getComponentName()}`);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user