Skip to content

Commit

Permalink
fix: executeLifeCycleMethod return bug in renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
owenchen1004 committed Nov 28, 2023
1 parent d64c7d5 commit f75b9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderer-core/src/renderer/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default function baseRendererFactory(): IBaseRenderComponent {
__afterInit(_props: IBaseRendererProps) { }

static getDerivedStateFromProps(props: IBaseRendererProps, state: any) {
return executeLifeCycleMethod(this, props?.__schema, 'getDerivedStateFromProps', [props, state], props.thisRequiredInJSE);
return executeLifeCycleMethod(this, props?.__schema, 'getDerivedStateFromProps', [props, state], props.thisRequiredInJSE) || null;
}

async getSnapshotBeforeUpdate(...args: any[]) {
Expand Down

0 comments on commit f75b9ae

Please sign in to comment.