mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
fix: coding style update
This commit is contained in:
parent
f852eae6db
commit
e01cc4d63f
@ -182,7 +182,8 @@ export default function baseRendererFactory(): IBaseRenderComponent {
|
|||||||
__afterInit(_props: IBaseRendererProps) { }
|
__afterInit(_props: IBaseRendererProps) { }
|
||||||
|
|
||||||
static getDerivedStateFromProps(props: IBaseRendererProps, state: any) {
|
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[]) {
|
async getSnapshotBeforeUpdate(...args: any[]) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user