Skip to content

[PATCH] refactor(core): add ENABLE_ROOT_COMPONENT_BOOTSTRAP token#59205

Closed
alan-agius4 wants to merge 1 commit intoangular:19.0.xfrom
alan-agius4:DISABLE_COMPONENTS_BOOTSTRAP_TOKEN_patch
Closed

[PATCH] refactor(core): add ENABLE_ROOT_COMPONENT_BOOTSTRAP token#59205
alan-agius4 wants to merge 1 commit intoangular:19.0.xfrom
alan-agius4:DISABLE_COMPONENTS_BOOTSTRAP_TOKEN_patch

Conversation

@alan-agius4
Copy link
Copy Markdown
Contributor

Patch version of #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
@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Dec 16, 2024
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Dec 16, 2024
@ngbot ngbot bot added this to the Backlog milestone Dec 16, 2024
@alan-agius4 alan-agius4 changed the title refactor(core): add ENABLE_ROOT_COMPONENT_BOOTSTRAP token [PATCH] refactor(core): add ENABLE_ROOT_COMPONENT_BOOTSTRAP token Dec 16, 2024
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Dec 16, 2024
@AndrewKushnir
Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit ba9bbd0.

The changes were merged into the following branches: 19.0.x

AndrewKushnir pushed a commit that referenced this pull request 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

PR Close #59205
@alan-agius4 alan-agius4 deleted the DISABLE_COMPONENTS_BOOTSTRAP_TOKEN_patch branch December 16, 2024 19:36
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants