Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Oct 14, 2024

An additional development server middleware has been added that responds to client /@ng/component requests from the Angular framework for hot component template updates. These client requests are made by the framework after being triggered by the development server sending a angular:component-update WebSocket event. The Angular compiler's new internal _enableHmr option will emit template replacement and reloading code that uses this new development server update middleware. Within the development server, the component update build result will be used to indicate that an event should be sent to active clients. The build system does not yet generate component update results.

@clydin clydin force-pushed the hmr/dev-server-templates branch from 5a4cd94 to 239343d Compare October 14, 2024 22:13
@clydin clydin marked this pull request as ready for review October 14, 2024 22:13
@clydin clydin requested a review from alan-agius4 October 14, 2024 22:13
@clydin clydin added action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release labels Oct 14, 2024
Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one NIT

@alan-agius4 alan-agius4 removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 15, 2024
…ent server

An additional development server middleware has been added that responds to
client `/@ng/component` requests from the Angular framework for hot component
template updates. These client requests are made by the framework after being
triggered by the development server sending a `angular:component-update`
WebSocket event. The Angular compiler's new internal `_enableHmr` option will
emit template replacement and reloading code that uses this new development
server update middleware. Within the development server, the component update
build result will be used to indicate that an event should be sent to active
clients. The build system does not yet generate component update results.
@clydin clydin force-pushed the hmr/dev-server-templates branch from 239343d to eee2505 Compare October 15, 2024 11:43
@clydin clydin merged commit 0376167 into angular:main Oct 15, 2024
29 checks passed
@clydin clydin deleted the hmr/dev-server-templates branch October 15, 2024 13:01
@angular-automatic-lock-bot
Copy link

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 Nov 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: @angular/build target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants