Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89c6042 commit b63cb6fCopy full SHA for b63cb6f
packages/react-reconciler/src/ReactFiberExpirationTime.js
@@ -43,7 +43,7 @@ const MAGIC_NUMBER_OFFSET = Batched - 1;
43
44
// 1 unit of expiration time represents 10ms.
45
export function msToExpirationTime(ms: number): ExpirationTime {
46
- // Always add an offset so that we don't clash with the magic number for NoWork.
+ // Always subtract an offset so that we don't clash with the magic number for NoWork.
47
return MAGIC_NUMBER_OFFSET - ((ms / UNIT_SIZE) | 0);
48
}
49
0 commit comments