Skip to content

fix: clear error auto-dismiss timer on unmount#6

Merged
jonathan-beebe merged 1 commit into
mainfrom
fix/004-error-timer-not-cleared-on-unmount
Mar 29, 2026
Merged

fix: clear error auto-dismiss timer on unmount#6
jonathan-beebe merged 1 commit into
mainfrom
fix/004-error-timer-not-cleared-on-unmount

Conversation

@jonathan-beebe
Copy link
Copy Markdown
Owner

Summary

  • Add useEffect cleanup in useShareImport to clear the pending error auto-dismiss timer on unmount
  • Prevents setError(null) from firing on an unmounted component
  • Resolves BUG-004

Test plan

  • New test: verifies clearTimeout is called on unmount when an error timer is pending
  • Full test suite passes (213 tests)

🤖 Generated with Claude Code

Add a useEffect cleanup that calls clearTimeout on the pending error
timer when the component unmounts, preventing setState on unmounted
components.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 29, 2026

Deploy Preview for golden-scone-6bfeb1 ready!

Name Link
🔨 Latest commit 07e08fd
🔍 Latest deploy log https://app.netlify.com/projects/golden-scone-6bfeb1/deploys/69c93cc168692600080f4055
😎 Deploy Preview https://deploy-preview-6--golden-scone-6bfeb1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jonathan-beebe jonathan-beebe merged commit 02b3881 into main Mar 29, 2026
5 checks passed
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