mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 |
||
|---|---|---|
| .. | ||
| annotate.ts | ||
| api.ts | ||
| cleanup.ts | ||
| compression.ts | ||
| error_handling.ts | ||
| event_replay.ts | ||
| i18n.ts | ||
| interfaces.ts | ||
| node_lookup_utils.ts | ||
| skip_hydration.ts | ||
| tokens.ts | ||
| utils.ts | ||
| views.ts | ||