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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM SPA React state management

BaluM
Level 2
Level 2

Hi All,

We are working on AEM 6.5 SPA using React as frontend(project created using archetype 23).

 

Can we use any state management frameworks like Redux in AEM to support data share between pages/components?

Or AEM SDK can be used to achieve this requirement

 

Thanks in advance.

 

 

 

aem6.5 react Route statemanagement
1 Accepted Solution
manising
Correct answer by
Level 3
Level 3

@BaluM I think in AEM the redux states are managed by sling models JSON export of the pages, so it should work

View solution in original post

5 Replies
Sam205505050
Level 6
Level 6

Short answer, both of your questions are possible, for long answer, post it to Stackoverflow, I can explain in more details

manising
Correct answer by
Level 3
Level 3

@BaluM I think in AEM the redux states are managed by sling models JSON export of the pages, so it should work

View solution in original post

BaluM
Level 2
Level 2

Hi @manising - I just checked in adobe documentation and found below options for data sharing between components.

 

Sharing Information Between SPA Components

It is regularly necessary for components within a single-page application to share information. There are several recommended ways of doing this, listed as follows in increasing order of complexity.