Skip to content

feat(core): emit template function for template related profiler hooks#60174

Closed
AleksanderBodurri wants to merge 1 commit intoangular:mainfrom
AleksanderBodurri:emit-template-function-in-create-update-hooks
Closed

feat(core): emit template function for template related profiler hooks#60174
AleksanderBodurri wants to merge 1 commit intoangular:mainfrom
AleksanderBodurri:emit-template-function-in-create-update-hooks

Conversation

@AleksanderBodurri
Copy link
Copy Markdown
Member

Previously, the profiler would only emit the specific template event and context when a template is created/updated, but not the template function related to the event.

This commit emits this function by using the third argument of the profiler function, which previously was only used for lifecycle hooks and output listeners. This commit also renames this arg to eventFn to express that it varies depending on the event type emitting from the profiler.

Note: this change is fully backwards compatible, since previously these template events did not use the third arg of the profiler function.

@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: core Issues related to the framework runtime labels Mar 3, 2025
@ngbot ngbot bot added this to the Backlog milestone Mar 3, 2025
@AleksanderBodurri AleksanderBodurri force-pushed the emit-template-function-in-create-update-hooks branch 2 times, most recently from 99ec09f to 550ebc5 Compare March 3, 2025 02:50
Previously, the profiler would only emit the specific template event and context when a template is created/updated, but not the template function related to the event.

This commit emits this function by using the third argument of the profiler function, which previously was only used for lifecycle hooks and output listeners. This commit also renames this arg to eventFn to express that it varies depending on the event type emitting from the profiler.

Note: this change is fully backwards compatible, since previously these template events did not use the third arg of the profiler function.
@AleksanderBodurri AleksanderBodurri force-pushed the emit-template-function-in-create-update-hooks branch from 550ebc5 to 640f5bf Compare March 3, 2025 02:57
@pkozlowski-opensource
Copy link
Copy Markdown
Member

Thnx @AleksanderBodurri !

@pkozlowski-opensource pkozlowski-opensource removed the request for review from dgp1130 March 3, 2025 10:04
@pkozlowski-opensource pkozlowski-opensource added target: minor This PR is targeted for the next minor release action: merge The PR is ready for merge by the caretaker labels Mar 3, 2025
@mmalerba
Copy link
Copy Markdown
Contributor

mmalerba commented Mar 3, 2025

This PR was merged into the repository by commit d260ca3.

The changes were merged into the following branches: main

@mmalerba mmalerba closed this in d260ca3 Mar 3, 2025
@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 Apr 3, 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 detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants