mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
Some CDN features and browser extensions change the HTML from the
server before hydration starts. These errors often happen only in
production or only for some users, so they are hard to find.
Prior to this commit, the docs didn't explain these causes and `NG0509`
had no error page.
With this change, the hydration guide explains these causes and their
fixes, and `NG0509` has an error page.
The `NG0509` code is now negative, like other codes that have an error
page. This changes the public API golden for `RuntimeErrorCode`.
(cherry picked from commit 65ef5cc865)
public-api/
This directory contains all of the public api goldens for our npm packages we publish to NPM. These are tested on all PRs and commits as part of our bazel tests.
To check or update the public api goldens, run one of the following commands:
pnpm public-api:check
pnpm public-api:update