refactor(core): add ENABLE_ROOT_COMPONENT_BOOTSTRAP token#59133
Closed
alan-agius4 wants to merge 1 commit intoangular:mainfrom
Closed
refactor(core): add ENABLE_ROOT_COMPONENT_BOOTSTRAP token#59133alan-agius4 wants to merge 1 commit intoangular:mainfrom
ENABLE_ROOT_COMPONENT_BOOTSTRAP token#59133alan-agius4 wants to merge 1 commit intoangular:mainfrom
Conversation
DISABLE_COMPONENT_BOOTSTRAP token
318cae5 to
ac6fb0e
Compare
ac6fb0e to
f286fd9
Compare
f286fd9 to
9e0a7d8
Compare
9e0a7d8 to
794a41a
Compare
794a41a to
4f2c59c
Compare
DISABLE_COMPONENT_BOOTSTRAP tokenENABLE_ROOT_COMPONENT_BOOTSTRAP token
Contributor
Author
|
Turns out we need this approach due to angular/angular-cli#29131 |
9f2b64a to
ba37fcd
Compare
pkozlowski-opensource
approved these changes
Dec 16, 2024
Introduced the `ENABLE_ROOT_COMPONENT_BOOTSTRAP` token to control the bootstrapping of components during application initialization. This token is utilized by the Angular CLI in the `@angular/ssr` package, particularly during server-side rendering (SSR) when extracting routes. When set to `false`, this token prevents the root component from being bootstrapped during SSR's route extraction phase, which is crucial for efficiently extracting routes without triggering component initialization. This mechanism separates the concerns of route extraction and component bootstrapping during SSR rendering, optimizing performance. If not provided or set to `true`, the default behavior of bootstrapping the root component(s) during initialization is maintained. Context: angular/angular-cli#29085
ba37fcd to
042765f
Compare
Contributor
|
This PR was merged into the repository by commit 9e0b50b. The changes were merged into the following branches: main |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PrajaktaB27
pushed a commit
to PrajaktaB27/angular
that referenced
this pull request
Feb 7, 2025
…59133) Introduced the `ENABLE_ROOT_COMPONENT_BOOTSTRAP` token to control the bootstrapping of components during application initialization. This token is utilized by the Angular CLI in the `@angular/ssr` package, particularly during server-side rendering (SSR) when extracting routes. When set to `false`, this token prevents the root component from being bootstrapped during SSR's route extraction phase, which is crucial for efficiently extracting routes without triggering component initialization. This mechanism separates the concerns of route extraction and component bootstrapping during SSR rendering, optimizing performance. If not provided or set to `true`, the default behavior of bootstrapping the root component(s) during initialization is maintained. Context: angular/angular-cli#29085 PR Close angular#59133
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduced the
ENABLE_ROOT_COMPONENT_BOOTSTRAPtoken to control the bootstrapping of components during application initialization. This token is utilized by the Angular CLI in the@angular/ssrpackage, particularly during server-side rendering (SSR) when extracting routes.When set to
false, this token prevents the root component from being bootstrapped during SSR's route extraction phase, which is crucial for efficiently extracting routes without triggering component initialization. This mechanism separates the concerns of route extraction and component bootstrapping during SSR rendering, optimizing performance.If not provided or set to
true, the default behavior of bootstrapping the root component(s) during initialization is maintained.Context: angular/angular-cli#29085