Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix react node destruction logic #5787

Merged
merged 4 commits into from
May 30, 2024
Merged

fix: fix react node destruction logic #5787

merged 4 commits into from
May 30, 2024

Conversation

Aarebecca
Copy link
Contributor

  • 修复 React 节点销毁时逻辑

  • Fixed React node destruction logic

@@ -36,8 +36,8 @@ export class ReactNode extends HTML {
}
}

public onDestroy() {
public destroy(): void {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

destroy 是销毁时调用的 API
onDestroy 是销毁后的 hook

@Aarebecca Aarebecca merged commit 04239f8 into v5 May 30, 2024
5 checks passed
@Aarebecca Aarebecca deleted the fix/react-node branch May 30, 2024 03:21
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.

2 participants