Skip to content

fix: executeLifeCycleMethod return bug in renderer#2705

Merged
1ncounter merged 2 commits into
alibaba:developfrom
owenchen1004:main
Nov 28, 2023
Merged

fix: executeLifeCycleMethod return bug in renderer#2705
1ncounter merged 2 commits into
alibaba:developfrom
owenchen1004:main

Conversation

@owenchen1004

Copy link
Copy Markdown
Contributor

fix:#2704

在getDerivedStateFromProps()加了一个undefined校验,没有直接改executeLifeCycleMethod(),以免影响其他方法。

@1ncounter

Copy link
Copy Markdown
Collaborator

@owenchen1004 有一条关于代码风格的建议,建议使用 if 判断,而不是 || 运算符,这样逻辑表述比表达式更加的清晰明了

@owenchen1004

Copy link
Copy Markdown
Contributor Author

@owenchen1004 有一条关于代码风格的建议,建议使用 if 判断,而不是 || 运算符,这样逻辑表述比表达式更加的清晰明了

感谢指点,换了三元表达式,逻辑上更清晰了

@1ncounter 1ncounter merged commit a8051ae into alibaba:develop Nov 28, 2023
@JackLian

Copy link
Copy Markdown
Collaborator

1.2.3-beta.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants