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

Pass dynamic data between components

Avatar

Level 1

Hi all,

I'm looking for a way to pass data to multiple components while only loading the data once. For example:

Component A (or model / sling resource) makes an http call and gets data back that it stores.

 

I now need to pass this data to component B and C but with out calling on my third-party API. (I only want to make my API call once and then share the data.)

 

Any help here would be great!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Sincore1 You should be able to cache third party API response into model object, and you can use same model object across the components. 

Apache Sling :: Sling Models 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@Sincore1 You should be able to cache third party API response into model object, and you can use same model object across the components. 

Apache Sling :: Sling Models