Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Why React example does not use Async call to fetch json of requested page

Avatar

Level 2

I am following this tutorials: https://github.com/adobe/aem-sample-we-retail-journal

Here, all the child pages JSON is stored into __INITIAL_STATE__ id. 

I want to know why it is done in this way, can someone please explain?

Instead what if I navigate on different links and then on click of each links if I call model json of that page via Async fetch and then accordingly set __INITIAL_STATE__ id. What problem in this approach? 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

Can you please check the latest sample project for the implementation https://github.com/Adobe-Marketing-Cloud/aem-guides-wknd-events

 

I am not a react expert so actually can't comment on approach but you can have a look to another sample SPA project from Adobe.

Arun Patidar

AEM LinksLinkedIn

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Hi,

Can you please check the latest sample project for the implementation https://github.com/Adobe-Marketing-Cloud/aem-guides-wknd-events

 

I am not a react expert so actually can't comment on approach but you can have a look to another sample SPA project from Adobe.

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 2
thanks, yes i know

Avatar

Level 2

I do not understand why you guys accept wrong answer as correct answer!!!!! crazy

Avatar

Administrator
Thank you for the feedback. we have marked it as incorrect.


Kautuk Sahni