Skip to content

chore: 前端 setTimeout 未保存句柄 — 组件卸载后 setState 警告 / 内存泄漏 #64

@appergb

Description

@appergb

现象 (Codex)

多处 `setTimeout` 未保存返回的 handle,组件卸载后回调仍执行 setState。

位置

  • `Settings.tsx:372` (CredentialField saved 闪烁)
  • `Settings.tsx:653` (AboutSection qqCopied 闪烁)
  • `Onboarding.tsx:79` (refresh 延后)

期望

useRef 存 handle,useEffect cleanup clearTimeout。

严重度

low — React 18 strict mode 会有控制台警告,长时间使用有轻微泄漏。

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions