You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bbf9422
Browse filesBrowse the repository at this point in the historyBrowse files
fix(useCopyToClipboard): cancel reset timer on unmount and re-click
Stores the timeout id in a ref so unmount (e.g. modal close right
after copy) cancels the pending setCopied(false), avoiding a stale
setState on a dead component tree. The same ref re-arms on rapid
re-click so the previous timer can't flip the flag back mid-
feedback.
0 commit comments