Skip to content

fix: clean up setTimeout on unmount in AdminEmails (apn-0d1oa.18)#445

Merged
paulvanbrenk merged 2 commits intomainfrom
merge/apn-0d1oa.18
Feb 26, 2026
Merged

fix: clean up setTimeout on unmount in AdminEmails (apn-0d1oa.18)#445
paulvanbrenk merged 2 commits intomainfrom
merge/apn-0d1oa.18

Conversation

@paulvanbrenk
Copy link
Collaborator

Summary

  • Fixes P1 bug: AdminEmails setTimeout for status messages was never cleared on unmount
  • Adds cleanup in useEffect return to prevent state updates on unmounted component

Issue

Closes apn-0d1oa.18

Test plan

  • 433/433 tests pass (dotnet test PatchNotes.slnx)

🤖 Merged by Refinery (ai_patch_notes merge queue processor)

Track timeout ID via useRef, cancel on unmount with useEffect cleanup,
and clear previous timeout before setting a new one to prevent state
updates on unmounted components.
@paulvanbrenk paulvanbrenk merged commit d43b161 into main Feb 26, 2026
4 checks passed
@paulvanbrenk paulvanbrenk deleted the merge/apn-0d1oa.18 branch February 26, 2026 03:08
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