Skip to content

Fix effect cleanup to prevent post-unmount state updates - #25

Open
boluwacodes wants to merge 1 commit into
stellXpress:mainfrom
boluwacodes:seed-10
Open

boluwacodes wants to merge 1 commit into
stellXpress:mainfrom
boluwacodes:seed-10

Conversation

@boluwacodes

@boluwacodes boluwacodes commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Returns a cleanup function from the polling/subscription effect so it no longer updates state or leaks an interval after unmount.

Closes #24

@boluwacodes boluwacodes changed the title Seed task #10: contribution by boluwacodes Fix effect cleanup to prevent post-unmount state updates Sep 3, 2026

This branch has not been deployed

No deployments
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.

useEffect subscription is not cleaned up, causing state updates after unmount

1 participant