Skip to content

Hydration resiliency: third party scripts that modify DOM and improved error messages #59224

@thePunderWoman

Description

@thePunderWoman

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

No

Description

Right now hydration mismatch errors will point directly to the HTML source where the mismatch occurred. This is very helpful in the case that the developer caused this mismatch. If a third party script did, it may be less helpful. Can we improve the error messages to point also to documentation around third party scripts? Or maybe even detect if it was generated by a script and make suggestions of using something like afterNextRender() to delay the execution of that script?

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)


Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimecore: hydrationopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).
    No fields configured for Enhancement.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions