Files
angular/packages/platform-server
arturovt eca5fa4665 fix(core): don't crash initEventReplay when two apps share an APP_ID
Please note that this change addresses a **real** production issue
observed, rather than a speculative issue identified through
AI-assisted code analysis.

There is no open issue because most people never put two apps with the
same APP_ID on one page.

Prior to this commit, if you bootstrap 2 apps simultaneously, i.e. a
real app + a widget coming from a CDN (the code we don't have control
of, but we only configure the app name in their settings):

```text
TypeError: Cannot read properties of undefined (reading 'c')
```

With this fix, the code no longer fails with a raw type error. It warns
with code NG0511 instead. It does not crash explicitly, because that
might break whenStable().

(cherry picked from commit 3a0835b332)
2026-10-14 20:02:20 +00:00
..
2024-03-28 13:02:50 -07:00