For some reason, the setStates in this function are not working and the execution goes directly to the getPodcastDetails
function!
For further actions, you may consider blocking this person and/or reporting abuse
For further actions, you may consider blocking this person and/or reporting abuse
gitter4coding -
Dylan Muraco -
alexia cismaru -
Hamza Khan -
Top comments (1)
Why is the getData function nested inside a callback? Just make the callback itself async and move the logic inside getData function up to the callback itself. You also don't need the setSelectedPodcast and setSelectedPodcastLoadState as dependencies for the callback, they are readonly values and cannot change. Not sure if that will fix your problem, but it's worth a shot.