refactor: prevent usage of this.state
inside setState
calls
#2302
+555
−477
this.state
inside setState
calls
#2302