Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: shell as standalone module #568

Merged
merged 1 commit into from
Feb 24, 2021
Merged

Conversation

dhhyi
Copy link
Collaborator

@dhhyi dhhyi commented Feb 23, 2021

PR Type

[x] Refactoring (no functional changes, no API changes)
[x] Application / infrastructure changes

What Is the Current Behavior?

  • ShellModule is imported in SharedModule so all components declared there can be re-used in the whole application.

What Is the New Behavior?

  • ShellModule is not reused anymore
  • Components used in the whole application should be declared in SharedModule and lazy components for them should be added to ShellModule

Does this PR Introduce a Breaking Change?

[ ] Yes
[x] No

Other Information

Following up on the ideas discussed with @ismail-codinglab and @adrianResler in #551, this PR disconnects ShellModule and SharedModule. The modified lazy-component schematic (will be introduced with #496) makes it possible to move ish-search-box to shared and the lazy basket item list (introduced in #528) moves ish-product-image to shared. In total this allows a redesign of ShellModule to no longer be re-used in SharedModule.
This also optimizes the initial bundle size further more.
This PR is based on that previous work still in review, so I added the wait label.

@dhhyi dhhyi added refactoring Refactoring of current code wait Waiting for something (e.g. new ICM release) labels Feb 23, 2021
@dhhyi dhhyi self-assigned this Feb 23, 2021
@MaxKless MaxKless removed the wait Waiting for something (e.g. new ICM release) label Feb 23, 2021
Base automatically changed from refactor/product-selector-memoization to develop February 23, 2021 16:07
@dhhyi dhhyi force-pushed the perf/shell-as-standalone-module branch from e04995f to bcb67fb Compare February 23, 2021 21:47
@dhhyi dhhyi force-pushed the perf/shell-as-standalone-module branch from bcb67fb to 14ae558 Compare February 24, 2021 01:31
@shauke shauke requested review from shauke and MaxKless and removed request for shauke February 24, 2021 11:02
@shauke shauke added this to the 0.28 milestone Feb 24, 2021
Copy link
Collaborator

@MaxKless MaxKless left a comment

Choose a reason for hiding this comment

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

Looks good, nice and clean seperation :) @shauke you look at it too

@shauke shauke merged commit c438931 into develop Feb 24, 2021
@shauke shauke deleted the perf/shell-as-standalone-module branch February 24, 2021 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactoring of current code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants