Load and navigating to next screen not working when coming back to screen
I have one SWiftUI application in which I have four screens. In Screen 3 I am calling an API and when I receive a response it is navigating to the next screen. This works perfectly when the user goes from Screen 1-> 2->3->4. But when coming back from 4->3 or 4->3->2->3, the API is called but the loader is not displayed and also not navigating to next screen. WHen I again go back to the first screen and do the same thing it works fine again. In short it is not working while navigating back. Only working for next. What can be the issue here?
SwiftUI load and navigating to next screen not working when coming back to screen
I have one swiftui application in which i have four screens. In Screen 3 i am calling APi and when received response it is navigating to next screen. This works perfectly when user goes from. Screen 1-> 2->3->4. But when coming back from 4->3 or 4->3->2->3, API is called but loader is not displayed and also not navigating to next screen. WHen i again go back to first screen and do the same thing it works fine again. In short it is not working while navigating back. Only working for next. What can be the issue here. Please help.