Bachelor's and Master's in CS from MIT. Previously, worked @ Microsoft & Zynga. Currently Co-Founder of Moesif (moesif.com), the most advanced API analytics platform.
if you have multiple callback asynchrous update the setState, you should consider this method to make sure they don't overwrite each other or race conditions:
this.setState( prevState => ({ ...prevState, work1: result });
this.setState( prevState => ({ ...prevState, work2: result });
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.
if you have multiple callback asynchrous update the setState, you should consider this method to make sure they don't overwrite each other or race conditions: