Skip to content

fix: 延迟支付宝 canvas 首帧渲染#350

Closed
huaxiabuluo wants to merge 2 commits into
masterfrom
fix-my-canvas-first-render
Closed

fix: 延迟支付宝 canvas 首帧渲染#350
huaxiabuluo wants to merge 2 commits into
masterfrom
fix-my-canvas-first-render

Conversation

@huaxiabuluo

Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces lifecycle management for the canvas component by tracking a destroyed flag and managing animation frames. It ensures that rendering tasks scheduled via requestAnimationFrame are aborted if the component is unmounted. The review feedback suggests clearing the nativeCanvas reference during unmounting to prevent potential memory leaks.

Comment thread packages/f-my/src/index.tsx
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@huaxiabuluo
huaxiabuluo deleted the fix-my-canvas-first-render branch May 13, 2026 04:34
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.

1 participant