Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prevent re-setting event listeners on every resize
reference https://reactjs.org/docs/hooks-reference.html#functional-updates “If your update function returns the exact same value as the current state, the subsequent rerender will be skipped completely.”
- Loading branch information