Skip to content

fix(webapp): safe set state#360

Merged
henryiii merged 2 commits into
mainfrom
henryiii/fix/safestate
Apr 5, 2026
Merged

fix(webapp): safe set state#360
henryiii merged 2 commits into
mainfrom
henryiii/fix/safestate

Conversation

@henryiii

@henryiii henryiii commented Apr 5, 2026

Copy link
Copy Markdown
Collaborator

Fix a warning in the webapp.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a React warning in the webapp by preventing state updates from an async Pyodide progress callback after the component lifecycle has ended.

Changes:

  • Introduced an _isMounted flag with componentDidMount/componentWillUnmount lifecycle updates.
  • Routed Pyodide progress updates through a new safeSetState helper instead of calling setState directly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/repo-review-app/repo-review-app.tsx Outdated
henryiii added 2 commits April 5, 2026 00:08
Signed-off-by: Henry Schreiner <[email protected]>
Signed-off-by: Henry Schreiner <[email protected]>
@henryiii henryiii force-pushed the henryiii/fix/safestate branch from bbd170f to d0d943c Compare April 5, 2026 05:09
@henryiii henryiii merged commit 2ca890b into main Apr 5, 2026
13 checks passed
@henryiii henryiii deleted the henryiii/fix/safestate branch April 5, 2026 05:32
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.

2 participants