♻️ [Amp story shopping] Attachment as element child#36989
♻️ [Amp story shopping] Attachment as element child#36989processprocess merged 25 commits intoampproject:mainfrom
Conversation
|
Hey @gmajoulet! These files were changed: Hey @newmuis! These files were changed: |
|
Out of curiosity, how does this refactor reduce the bundle size? Also, is there a technical concern about using inheritance here? This PR takes the existing structure of |
|
It reduces the bundle size by removing the import of It can be implemented either way but the idea behind this approach is to favor composition over inheritance. |
Refactor to use an element child instead of class inheritance.
This reduces bundle size by removing the import of
AmpStoryPageAttachentas well as potential technical debt from a third level of inheritance.(draggable-drawer > page-attachment > shopping-attachment).