Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(scheduler): getNow detection can randomly fail (#9667)
The previous detection code compared time stamps based on Date.now() which are not monotonic, so the check could fail due to clock skew or adjustments. This fix changes the check to compare against performance.now() if it is supported, because it is monotonic (strictly increasing).
- Loading branch information