Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Component rendering twice in Publish Mode [SPA/REACT]

Avatar

Level 3

AEM React Spa components are rendering twice in publish Mode.

 

In Author Mode:

LeelaPavanKumar_0-1640879885389.png

 

In Publish Mode:

LeelaPavanKumar_1-1640879943498.png

Why the content is rendering twice and How to fix this issue?

 

1 Reply

Avatar

Level 3

Hi @milind_bachani ,

 

Thanks for the response,

 

We are not using React.StrictMode in our index.js.

 

Could you please let me know how can I snub the calls from en.model.json.

Avatar

Community Advisor

Hi @Leela-Pavan-Kumar - are you still facing the issue ?


If yes, you need to check couple of things before making changes to the model.json:
1. The publisher CRX-de does not show 2 component in your /content path
2. Please post the en.model.json response from network tab here.?
3. Try to align the component with tutorial link shared above.

We can investigate further based on the above mentioned checks.

Thanks.