Skip to content

Conversation

@vtemian
Copy link
Contributor

@vtemian vtemian commented Jan 9, 2026

Summary

  • Fix potential memory leak in TextField copy button
  • Use reactive effect pattern for timeout management
  • Auto-cleanup on rapid clicks and component unmount

Changes

The copy feedback timeout (2s "Copied" indicator) now uses createEffect with onCleanup instead of a bare setTimeout. This ensures:

  • Previous timeout is cleared on rapid clicks
  • Timeout is cleared on component unmount
  • No state updates on unmounted components

Use reactive effect pattern to handle copy feedback timeout.
The effect auto-cleans up on re-run (rapid clicks) and component
unmount, preventing state updates on unmounted components.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@vtemian vtemian closed this Jan 9, 2026
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