Skip to content

[DevTools] Visualize hydrated parts of an application #51790

@AndrewKushnir

Description

@AndrewKushnir

Which @angular/* package(s) are relevant/related to the feature request?

devtools

Description

Currently there is no easy way to detect which parts of an application were hydrated and which parts were re-created. The proposal is to consider adding a support to Angular DevTools to inspect components and visually highlight:

  • components that were hydrated
  • components that skipped hydration (by adding the ngSkipHydration attribute)
  • components that were serialized, but not yet hydrated (e.g. being lazy-loaded)
  • components created from scratch

It'd be interesting to explore if we can visually separate them on a page once a certain mode is enabled in DevTools (see screen shot attached), so that it's easy to visually assess which parts of an application are hydrated. If it's problematic to annotate, we can may be add a flag into a component inspector panel to indicate it's hydration state.

hydrated-components

We can also enable those extra flags and modes only when we detect that an application was server-side rendered.

// cc @AleksanderBodurri @dgp1130

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: devtoolsfeatureLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under consideration

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions