Hey everyone,
I have a 2 screen app. On 1st screen, user enters data and hits a Submit button, data is stored in a variable and user is navigated to 2nd screen. On 2nd screen, there's a gallery with data source pointing to a REST Api with the query containing the variable from the 1st screen. It takes ~10 seconds to load data from API and items are populated. There's also a "Go back" button on second screen.
When the application runs for the first time, everything is working fine. If the user hits the back button on 2nd screen , enters new data on first screen and hits Submit again, app navigates to 2nd screen and calls the Api with the new value as expected.But the problem is, while the application is waiting for the results from Api, it shows the results from the previous query.
Is there a way to reset the Gallery Items to blank before submitting the query to Api or when user hits "Go back" button ? Or hide the Gallery until results are retrieved maybe?
Thank you.

Report
All responses (
Answers (