Skip to content

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

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

Activity

  1. added
    area: core
    on Dec 17, 2024
  2. added this to the needsTriage milestone on Dec 17, 2024
  3. added
    open for contributions
    on Apr 8, 2026
  4. added 3 commits that reference this issue on Apr 13, 2026
    f6079b7
    c2f4f0b
    6578a99
  5. added a commit that references this issue on Apr 17, 2026
    b24ead5
  6. added a commit that references this issue on Apr 17, 2026
    d771a65
  7. angular-automatic-lock-bot commented on May 18, 2026

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on May 18, 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

    area: corecore: hydrationopen for contributions

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo