Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b63cb6f

Browse files
authored
Update ReactFiberExpirationTime.js (facebook#17825)
replaced 'add' with 'subtract'
1 parent 89c6042 commit b63cb6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-reconciler/src/ReactFiberExpirationTime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const MAGIC_NUMBER_OFFSET = Batched - 1;
4343

4444
// 1 unit of expiration time represents 10ms.
4545
export function msToExpirationTime(ms: number): ExpirationTime {
46-
// Always add an offset so that we don't clash with the magic number for NoWork.
46+
// Always subtract an offset so that we don't clash with the magic number for NoWork.
4747
return MAGIC_NUMBER_OFFSET - ((ms / UNIT_SIZE) | 0);
4848
}
4949

0 commit comments

Comments
 (0)