Share data across pages in composite application

What is the best way to share data across multiple pages in a composite application?

I can trigger an action on another page by using wires, but wires switch the page and I do not want that. I want to save the selection until I navigate to the second page and then trigger the desired action.

I have read an article about design patterns in composite applications:

and the Aggregation component is what I am looking for, but i have no Idea how to implement it.