dillon1000/react

Commit

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.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberScheduler.new.js ModifiedM packages/react-reconciler/src/__tests__/ReactExpiration-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…