コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.
解決済み

EDS global state

Avatar

Level 2

It's possible to create a global state, similar to redux ( maybe? ), that we can use to share date between components. Blocks now have to do their own requests, which is not very optimal if they share the same data .

1 受け入れられたソリューション

Avatar

正解者
Community Advisor and Adobe Champion

Hi,

 

I don’t think there’s a concept of "global state" in EDS. The whole idea is to keep it simple using JavaScript, so you should use native methods to share data across components. You could explore options like global JavaScript variables, session storage, local storage, etc.

 

Hope this helps



Esteban Bustamante

元の投稿で解決策を見る

2 返信

Avatar

正解者
Community Advisor and Adobe Champion

Hi,

 

I don’t think there’s a concept of "global state" in EDS. The whole idea is to keep it simple using JavaScript, so you should use native methods to share data across components. You could explore options like global JavaScript variables, session storage, local storage, etc.

 

Hope this helps



Esteban Bustamante

Avatar

Community Advisor