alibaba / lowcode-engine

An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系
https://lowcode-engine.cn
MIT License
14.66k stars 2.55k forks source link

renderer中pageRender调用getDerivedStateFromProps方法触发警告 #2704

Open owenchen1004 opened 12 months ago

owenchen1004 commented 12 months ago

当对renderer做二次封装时,会出现如下warnning: image

初步判定PageRenderer调用getDerivedStateFromProps方法时,excuteLifeCycleMethod返回了undefined,而不是一个空值null,导致static方法getDerivedStateFromProps报错。

image image
1ncounter commented 12 months ago

@owenchen1004 看起来是这里的问题,欢迎提一个pr来修复它。

owenchen1004 commented 12 months ago

@owenchen1004 看起来是这里的问题,欢迎提一个pr来修复它。

稍等 我提了

github-actions[bot] commented 12 months ago

Hello @owenchen1004. We totally like your proposal/feedback, PR wanted。

你好 @owenchen1004,我们完全同意你的提议/反馈,欢迎 PR。

owenchen1004 commented 12 months ago

请问pr向哪个分支提?

1ncounter commented 12 months ago

请问pr向哪个分支提?

develop 分支

owenchen1004 commented 12 months ago

pr已关联 https://github.com/alibaba/lowcode-engine/pull/2705