Skip to content

refactor(core): avoid code duplication in standalone-related logic#45949

Closed
AndrewKushnir wants to merge 1 commit intoangular:mainfrom
AndrewKushnir:misc_standalone_refactor
Closed

refactor(core): avoid code duplication in standalone-related logic#45949
AndrewKushnir wants to merge 1 commit intoangular:mainfrom
AndrewKushnir:misc_standalone_refactor

Conversation

@AndrewKushnir
Copy link
Contributor

@AndrewKushnir AndrewKushnir commented May 11, 2022

This commit updates the standalone-related logic to address the feedback from previous code reviews (specifically: #45687 (comment)).

PR Type

What kind of change does this PR introduce?

  • Refactoring (no functional changes, no api changes)

Does this PR introduce a breaking change?

  • Yes
  • No

@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime target: rc This PR is targeted for the next release-candidate cross-cutting: standalone Issues related to the NgModule-less world labels May 11, 2022
@ngbot ngbot bot modified the milestone: Backlog May 11, 2022
@pullapprove pullapprove bot requested review from atscott and dylhunn May 11, 2022 01:56
This commit updates the standalone-related logic to address the feedback from previous code reviews (specifically: angular#45687 (comment)).
@AndrewKushnir AndrewKushnir force-pushed the misc_standalone_refactor branch from dfe09ec to a2f6e6d Compare May 11, 2022 02:21
@AndrewKushnir AndrewKushnir changed the title refactor(core): minor refactoring of standalone-related logic refactor(core): avoid code duplication in standalone-related logic May 11, 2022
Copy link
Member

@pkozlowski-opensource pkozlowski-opensource left a comment

Choose a reason for hiding this comment

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

LGTM

standalone: componentDefinition.standalone === true,
dependencies:
componentDefinition.standalone === true && componentDefinition.dependencies || null,
standalone,

Choose a reason for hiding this comment

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

nit: could we use a long-form here (standalone: standalone)? It is easy to break things with a rename and it looks inconsistent with the existing code.

@pkozlowski-opensource pkozlowski-opensource added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels May 16, 2022
@jessicajaniuk
Copy link
Contributor

This PR was merged into the repository by commit ca04ece.

jessicajaniuk pushed a commit that referenced this pull request May 16, 2022
…45949)

This commit updates the standalone-related logic to address the feedback from previous code reviews (specifically: #45687 (comment)).

PR Close #45949
@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 Jun 16, 2022
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 cross-cutting: standalone Issues related to the NgModule-less world target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants