Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix setState calls using updater functions (#3247)
React does not guarantee that the state changes are applied immediately. It is best practice to use an updater function if the new state relies on the current state.
- Loading branch information
8e1e03d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix setState calls using updater functions (#3247)
Previews: documentation | landing | table