fix: coding style update

This commit is contained in:
owenchen1004 2023-11-28 11:04:37 +08:00 committed by JackLian
parent f852eae6db
commit e01cc4d63f

View File

@ -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) || null;
const result = executeLifeCycleMethod(this, props?.__schema, 'getDerivedStateFromProps', [props, state], props.thisRequiredInJSE);
return result === undefined ? null : result;
}
async getSnapshotBeforeUpdate(...args: any[]) {