Skip to content

Injector Tree diagrams reset on every change detection #58389

@mwaibel-go

Description

@mwaibel-go

Is this a bug report or a feature request?

  • Bug Report
  • Feature Request

Please provide the steps to reproduce the issue [Bug Report only]

  1. Open the stackblitz stackblitz, which does nothing except trigger a change detection every second.
  2. Open the Angular devtools on the page.
  3. Navigate to the injector tree tab in the Angular devtools.
  4. Pan either the environment hierarchy or injector hierarchy diagrams.
  5. Observe that the view you panned resets after at most one second, when the change detection happens.

Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]

Actual behaviour: the diagrams move to the roots of the hierarchies whenever change detection happens.

Expected behaviour:

  1. If the hierarchy doesn’t change at all, the current state of the diagram (panning and zoom) should stay as they were before the change detection.
  2. It would be awesome (though probably hard to achieve) to not change the panning and zoom even if there are (some) changes to the hierarchy, though the exact expected behaviour is probably up to a lot of debate. This part is more of a feature request and probably out of scope for the bug fix, but I wanted to mention it.

Please provide a screenshot if possible [Bug Report only]

No response

Please provide the exception or error you saw [Bug Report only]

No error

Is this a browser-specific issue? If so, please specify the device, browser, and version. [Bug Report only]

Reproducible in Firefox and chromium

Description [Feature Request only]

No response

Proposed solution [Feature Request only]

No response

Alternatives considered [Feature Request only]

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions