E
E
Egor2020-04-20 03:43:15
Java
Egor, 2020-04-20 03:43:15

How to pass data from one Interactor to another?

I'm trying to develop an application on a clean architecture. I divided the tasks into layers, and it turned out that the Interactor (Use Case) layers do not know anything about each other. I get a big json
from the server . On one screen, I display all of its elements as a list, and on click, on the next screen, I show the details of this element. How can I pass the selected item from Interactor(All Items) to Interactor(Details) without making a second request to the server?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question