What's wrong with this code?
while
isLoading
There variable is in the condition before we created it.