Skip to content

Conversation

@alan-agius4
Copy link
Contributor

While unlikely, prior to this change it was possible to provide a nested array of styles to the render. This required the framework to handle this by doing a flatten operation. This change also renames the flattenStyles method as it no longer flattens the styles.

BREAKING CHANGE: RendererType2.styles no longer accepts a nested arrays.

Closes #48317

@alan-agius4 alan-agius4 added the area: core Issues related to the framework runtime label Feb 15, 2023
@ngbot ngbot bot added this to the Backlog milestone Feb 15, 2023
@angular-robot angular-robot bot added the detected: breaking change PR contains a commit with a breaking change label Feb 15, 2023
@alan-agius4 alan-agius4 added the target: major This PR is targeted for the next major release label Feb 15, 2023
@alan-agius4 alan-agius4 marked this pull request as ready for review February 15, 2023 14:44
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Feb 15, 2023
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

@alan-agius4 looks great, thanks for the cleanup 👍

@AndrewKushnir AndrewKushnir changed the title perf(@angular/core): change RendererType2.styles to accept a only a flat array perf(core): change RendererType2.styles to accept a only a flat array Feb 15, 2023
Copy link
Contributor

@jessicajaniuk jessicajaniuk left a comment

Choose a reason for hiding this comment

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

reviewed-for: fw-core, fw-platform-server, public-api

Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

Reviewed-for: public-api

@AndrewKushnir AndrewKushnir removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Feb 15, 2023
@alan-agius4
Copy link
Contributor Author

Will wait on #48298 before merging to avoid conflicts for the patch branch.

While unlikely, prior to this change it was possible to provide a nested array of styles to the render. This required the framework to handle this by doing a flatten operation. This change also renames the `flattenStyles` method as it no longer flattens the styles.

BREAKING CHANGE: `RendererType2.styles` no longer accepts a nested arrays.

Closes angular#48317
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note and removed merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Feb 17, 2023
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit 9b9c818.

@alan-agius4 alan-agius4 changed the title perf(core): change RendererType2.styles to accept a only a flat array perf(core): change RendererType2.styles to accept only a flat array Feb 22, 2023
@alan-agius4 alan-agius4 deleted the styles-array branch February 22, 2023 22:09
@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 Mar 25, 2023
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 breaking changes detected: breaking change PR contains a commit with a breaking change target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf: consider removing any[] from the RendererType2.styles

3 participants