angular/packages/platform-server/test
arturovt 624be2ef0c fix(core): prevent stash listener conflicts (#59635)
The stash event listener is a global function that might be unsafely overridden if multiple microfrontend applications exist on the page.

In this commit, we create a map of `APP_ID` to stash event listener functions. This map prevents conflicts because multiple applications might be bootstrapped simultaneously on the client (one rendered on the server and one rendering only on the client).

I.e., the code that might be used is:

```ts
// Given that `app-root` is rendered on the server
bootstrapApplication(AppComponent, appConfig);

bootstrapApplication(BlogRootComponent, appBlogConfig);
```

Two bootstrapped applications would conflict and override each other's code.

PR Close #59635
2025-04-30 08:53:06 -07:00
..
BUILD.bazel refactor(core): clean up event replay tests (#60130) 2025-02-28 16:30:27 +00:00
dom_utils.ts test(platform-server): fix flaky hydration test (#59579) 2025-01-17 10:30:51 +01:00
event_replay_spec.ts fix(core): prevent stash listener conflicts (#59635) 2025-04-30 08:53:06 -07:00
full_app_hydration_spec.ts feat(core): rename afterRender to afterEveryRender and stabilize (#60999) 2025-04-28 12:33:55 -07:00
hydration_utils.ts docs: update license URL from angular.io to angular.dev and year of license to 2025 (#59407) 2025-01-09 10:27:54 -05:00
incremental_hydration_spec.ts ci: fix timer test flakiness (#60310) 2025-03-10 15:08:54 -07:00
integration_spec.ts refactor(core): stop producing ng-reflect attributes by default (#60973) 2025-04-24 10:07:35 -07:00
transfer_state_spec.ts refactor(platform-server): switching to relative imports within the platform-server package (#60559) 2025-03-27 18:31:51 +00:00