React SPA Edit Mode not working on page load | Community
Skip to main content
September 15, 2024

React SPA Edit Mode not working on page load

  • September 15, 2024
  • 2 replies
  • 795 views

Hi,

 

In the AEM React SPA application when the author environment page loads the user is not able to see any of the components in the content tree and not able to configure the components. However when user clicks on Preview option and then on Edit then content tree loads up correctly and the components dragged on the page could be selected. This issue is on all the environments LOCAL, DEV, UAT and PROD.

 

Thank you for your time, consideration, and experience!

 

Regards,

Varinderjit

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

ManviSharma
Adobe Employee
Adobe Employee
September 16, 2024

Hi Team,

In your AEM React SPA, the content tree and components only load after switching to Preview and back to Edit, which may indicate a client-side or SPA Editor initialization issue.

- Check the browser's JavaScript console for errors during the initial load and ensure your SPA Editor SDK and React components are properly configured.

- Are there any failed network requests on the initial load? Have you confirmed the versions of the SDK and other dependencies are compatible?

Regards,

Manvi Sharma

cccc1Author
October 2, 2024

Hi Manvi,

 

Thank you for getting back to me.

 

I've checked on the page load there are no JS errors or failed network requests in the browser.

 

Which configuration/client library do I need to check that adds the content tree onto a page specifically?

 

Thanks,

 

Varinderjit

kautuk_sahni
Community Manager
Community Manager
February 18, 2025

@cccc1 Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni