I want to use data, that i am recieving from API response, in two different fragments.
Right now i have one activity and two fragments.
When app starts, there is API call in first fragment. Then i show results of API response. Also, i want to use the same result in second fragment. Data i want to use stored in List
So, my question is: do i have to make request in first fragment and somehow pass data to second fragment, or there is a way to make request outside fragment, strore result, and then use this result from both fragments?