adobe-rnd / aem-boilerplate-xwalk

Use this repository template for new AEM XWalk projects.
https://main--aem-boilerplate-xwalk--adobe-rnd.aem.page
Apache License 2.0
23 stars 29 forks source link

fix: allow to call decorate sections more than once #4

Closed buuhuu closed 8 months ago

buuhuu commented 8 months ago

To support in-place updates of sections we need to be able to call decorateSections() more than once.

Currently decorateSections() is stateful, meaning it breaks the page as it applies its changes to the DOM twice. With this proposal decorateSections() will only handle sections that have not yet been decorated.

aem-code-sync[bot] commented 8 months ago

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed. In case there are problems, just click a checkbox below to rerun the respective action.

Commits * [d83989e](https://github.com/adobe-rnd/aem-boilerplate-xwalk/pull/4/commits/d83989e3e445b7dc13b16c432033a6472cfd7767) :white_check_mark: (latest)