mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Executions of setState() may be batched, and so updates to this.state and this.props can be asynchronous, so references to this.state and this.props should not be made in the new state, and instead the callback form of setState() should be used. These alerts were found using lgtm.com: https://lgtm.com/projects/g/BoostIO/Boostnote/alerts/?mode=tree&ruleFocus=1819283066 see: https://reactjs.org/docs/state-and-lifecycle.html#state-updates-may-be-asynchronous
3.1 KiB
3.1 KiB