aem-spa-project-core icon indicating copy to clipboard operation
aem-spa-project-core copied to clipboard

Infinite number of calls to webpack-hmr on Remote SPA nextjs page and page load is very slow

Open deepthikomatineni opened this issue 2 years ago • 1 comments

Describe the bug We are using AEM Remote SPA Editor with Next.js where the pages are rendered on NextJs and noticed that infinite calls are being made for webpack-hmr, although the calls dont error out with spa core components 1.3.8 version but there is continuous call being made every second. It takes a long time for the page to render on AEM author instance

Package version 6.5.7

To Reproduce Steps to reproduce the behavior:

  1. Set up AEM remote spa with Nextjs
  2. Open any page created with remote next spa page templage
  3. check the network tab to see the calls to webpack-hmr

Expected behavior Not sure if this is the cause for the delay in page load on AEM, it takes a few seconds for the page to render

Screenshots image

Additional context Add any other context about the problem here.

deepthikomatineni avatar Mar 01 '22 01:03 deepthikomatineni