m-input-number
m-input-number copied to clipboard
🚨 fix inconsistent component state updates
React component state updates using setState may asynchronously update this.props and this.state, thus it is not safe to use either of the two when calculating the new state passed to setState, and instead the callback-based variant should be used instead. (details here).
These were all found on LGTM.com, and there are a couple of other alerts for this project that would probably also be good to fix.
(Full disclosure: I'm part of the team behind LGTM.com)