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
fetchas a callback ofthis.setState().My guess is that,
handleClick's firstthis.setStatesets theloadingproperty, which is not properly recognized asthis.setStateis an asynchronous operation.You'd fetch after loading property is turned off if you want such a synchronous behavior.