Skip to content

Commit f75b9ae

Browse files
committed
fix: executeLifeCycleMethod return bug in renderer
1 parent d64c7d5 commit f75b9ae

File tree

1 file changed

+1
-1
lines changed
  • packages/renderer-core/src/renderer

1 file changed

+1
-1
lines changed

packages/renderer-core/src/renderer/base.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export default function baseRendererFactory(): IBaseRenderComponent {
182182
__afterInit(_props: IBaseRendererProps) { }
183183

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

188188
async getSnapshotBeforeUpdate(...args: any[]) {

0 commit comments

Comments
 (0)