@samitouri / QOS-React-2 / commits / b63cb6f6cf

Update ReactFiberExpirationTime.js (#17825)

replaced 'add' with 'subtract'

haseeb committed Feb 10, 2020 at 12:37 UTC b63cb6f6cf18bbe28eb0a443c64fd9b87d79616d
1 file changed +1 -1
packages/react-reconciler/src/ReactFiberExpirationTime.js
+1 -1
@@ -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.
46 + // 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