I am updating App stage variable on successful of API and setting app sate with API result. on first click, API is getting result but variable is not being set. Its being set on 2nd click, but the data of previous API result is being set in the App stage variable, so its setting data of previous click every time. Plz suggest