mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
Merge pull request #2705 from owenchen1004/main
fix: executeLifeCycleMethod return bug in renderer
This commit is contained in:
commit
a8051aefc3
@ -182,7 +182,8 @@ export default function baseRendererFactory(): IBaseRenderComponent {
|
||||
__afterInit(_props: IBaseRendererProps) { }
|
||||
|
||||
static getDerivedStateFromProps(props: IBaseRendererProps, state: any) {
|
||||
return executeLifeCycleMethod(this, props?.__schema, 'getDerivedStateFromProps', [props, state], props.thisRequiredInJSE);
|
||||
const result = executeLifeCycleMethod(this, props?.__schema, 'getDerivedStateFromProps', [props, state], props.thisRequiredInJSE);
|
||||
return result === undefined ? null : result;
|
||||
}
|
||||
|
||||
async getSnapshotBeforeUpdate(...args: any[]) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user