Skip to content

Inspector tree errors are removed on hot-reloads - #9106

Merged
elliette merged 4 commits into
flutter:masterfrom
elliette:issue-9096
Apr 4, 2025
Merged

elliette merged 4 commits into
flutter:masterfrom
elliette:issue-9096

Conversation

@elliette

@elliette elliette commented Apr 4, 2025

Copy link
Copy Markdown
Member

Fixes #9096

We were adding an error to the tree every time we received an error event, but we were never removing them.

When a hot-reload is triggered, any render errors are sent to the extension stream, so we can safely clear all errors on reload because any pre-existing errors will be re-sent.

The error_badge_manager file could use an overhaul, opened #9105 to do that as a follow up.

@elliette
elliette requested review from a team, bkonyi and kenzieschmoll as code owners April 4, 2025 02:57
@elliette
elliette merged commit a45587c into flutter:master Apr 4, 2025
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.

Layout errors don't go away in Widget Inspector

2 participants