My guess is that, handleClick's first this.setState sets the loading property, which is not properly recognized as this.setState is an asynchronous operation.
You'd fetch after loading property is turned off if you want such a synchronous behavior.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi @iamkael .
Call
fetch
as a callback ofthis.setState()
.My guess is that,
handleClick
's firstthis.setState
sets theloading
property, which is not properly recognized asthis.setState
is an asynchronous operation.You'd fetch after loading property is turned off if you want such a synchronous behavior.