dillon1000/react
Commit
Browse files Fix: Measure expiration times relative to module initialization (#15357)
We use bitwise operations to compute expiration times, which means they need to be smaller than 31 bits. So we measure times relative to module initialization, similar to `performance.now`. This was already working in the old fiber scheduler, but we didn't have a test for it.
Changed paths2 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberScheduler.new.js ModifiedM packages/react-reconciler/src/__tests__/ReactExpiration-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…