Skip to content

Commit

Permalink
fix: coding style update
Browse files Browse the repository at this point in the history
  • Loading branch information
owenchen1004 committed Nov 28, 2023
1 parent f75b9ae commit b786c8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/renderer-core/src/renderer/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[]) {
Expand Down

0 comments on commit b786c8f

Please sign in to comment.