@reactive-js/react-scheduler
Advanced tools
Comparing version
@@ -23,5 +23,3 @@ "use strict"; | ||
currentDisposable = disposable; | ||
priorityScheduler.inScheduledContinuation = true; | ||
const result = continuation(shouldYield) || undefined; | ||
priorityScheduler.inScheduledContinuation = false; | ||
currentDisposable = disposable_1.disposed; | ||
@@ -43,3 +41,2 @@ if (result !== undefined) { | ||
const priorityScheduler = { | ||
inScheduledContinuation: false, | ||
get now() { | ||
@@ -46,0 +43,0 @@ return scheduler_1.unstable_now(); |
@@ -21,5 +21,3 @@ import { unstable_IdlePriority, unstable_ImmediatePriority, unstable_LowPriority, unstable_NormalPriority, unstable_cancelCallback, unstable_now, unstable_scheduleCallback, unstable_shouldYield, unstable_UserBlockingPriority, } from "scheduler"; | ||
currentDisposable = disposable; | ||
priorityScheduler.inScheduledContinuation = true; | ||
const result = continuation(shouldYield) || undefined; | ||
priorityScheduler.inScheduledContinuation = false; | ||
currentDisposable = disposed; | ||
@@ -41,3 +39,2 @@ if (result !== undefined) { | ||
const priorityScheduler = { | ||
inScheduledContinuation: false, | ||
get now() { | ||
@@ -44,0 +41,0 @@ return unstable_now(); |
{ | ||
"name": "@reactive-js/react-scheduler", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"main": "dist/cjs/index.js", | ||
@@ -41,5 +41,5 @@ "module": "dist/esm5/index.js", | ||
"dependencies": { | ||
"@reactive-js/disposable": "^0.0.15", | ||
"@reactive-js/scheduler": "^0.0.15", | ||
"@reactive-js/schedulers": "^0.0.15", | ||
"@reactive-js/disposable": "^0.0.16", | ||
"@reactive-js/scheduler": "^0.0.16", | ||
"@reactive-js/schedulers": "^0.0.16", | ||
"scheduler": "^0.17.0" | ||
@@ -60,3 +60,3 @@ }, | ||
}, | ||
"gitHead": "bb6f825c233fcf3516c7b6ee146d262ac836e5f2" | ||
"gitHead": "dcc81a6c83b8b8d8ac95dd07a395f1e5889bdeb8" | ||
} |
@@ -64,5 +64,3 @@ /* eslint-disable @typescript-eslint/camelcase */ | ||
currentDisposable = disposable; | ||
priorityScheduler.inScheduledContinuation = true; | ||
const result = continuation(shouldYield) || undefined; | ||
priorityScheduler.inScheduledContinuation = false; | ||
currentDisposable = disposed; | ||
@@ -88,4 +86,2 @@ | ||
const priorityScheduler = { | ||
inScheduledContinuation: false, | ||
get now(): number { | ||
@@ -92,0 +88,0 @@ return unstable_now(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
366921
0.55%279
-3.12%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed