Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-144949

Autogenerate liferay-frontend:component componentId when not present to ensure all components are destroyed properly

    Details

      Description

      Tag attribute componentId is not mandatory in tag <liferay-frontend:component> Thus, it means that if you have several components without it in the page, only one gets registered in the Liferay.component register and only that is disposed properly.

      Autogenerating this in case none is provided avoid this problem.

      The same is done in render method for react components: https://github.com/liferay/liferay-portal/blob/bb68c01a156968581daceaad75b1a6565fcac700/modules/apps/frontend-js/frontend-js-react-web/src/main/resources/META-INF/resources/js/render.tsx#L60-L62

        Attachments

          Activity

            People

            Assignee:
            team-frontend-infra Product Team Frontend Infrastructure
            Reporter:
            victor.galan Victor Galan
            Recent user:
            Clarissa Velazquez
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.4.3.8 CE GA8
                7.4.13 DXP U4
                Master