Skip to content

DevTools: after a hot-reload reorder, the inspector keeps stale names and the selection silently moves to another element #1355

Open

Description

Found while testing #1197 (Reactor support in DevTools) with a small app that mixes XAML and Reactor, under winapp run . --watch --devtools on. This isn't blocking that PR; filing it so we track it once it lands.

What happens

  1. Select a Reactor button (for example +5) in the inspector.
  2. In code, swap the order of two buttons in the component (+5 and Reset) and save. Hot Reload applies it.
  3. Reactor keeps both controls and swaps their content. winapp devtools inspect shows the new order correctly, but the inspector window still labels the +5 row #resetButton, and the header says Button #resetButton next to the +5 source line. It stays wrong after clicking, waiting, or reopening the inspector.
  4. The selection stays on the same WinUI control, which is now the other button, so the details pane quietly shows a different element's data.

Expected
Labels refresh when names change, and the selection follows the component (component + key + call site), not the reused control. React DevTools keeps a selection on the same component across re-renders.

Likely cause (from reading the code, not verified)
The inspector rebuilds labels only when the set of elements changes (changed in DevToolsTap.Reactor.inc around line 1036). A reorder that reuses the same controls doesn't count.

Activity

  1. added
    bugSomething isn't working
    devtoolsWinUI DevTools: toolbar, inspector, and winapp devtools commands
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdevtoolsWinUI DevTools: toolbar, inspector, and winapp devtools commands

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions