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.
We can also enable those extra flags and modes only when we detect that an application was server-side rendered.
// cc @AleksanderBodurri @dgp1130
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:
ngSkipHydrationattribute)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.
We can also enable those extra flags and modes only when we detect that an application was server-side rendered.
// cc @AleksanderBodurri @dgp1130