You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
integrate scheduler.yield in SchedulerPostTask (#27069)
## Summary
`scheduler.yield` is entering [Origin Trial soon in Chrome
115](https://chromestatus.com/feature/6266249336586240). This diff adds
it to `SchedulerPostTask` when scheduling continuations to allow Origin
Trial participation for early feedback on the new API.
It seems the difference here versus the current use of `postTask` will
be minor – the intent behind `scheduler.yield` seems to mostly be better
ergonomics for scheduling continuations, but it may be interesting to
see if the follow aspect of it results in any tangible difference in
scheduling (from
[here](https://github.com/WICG/scheduling-apis/blob/main/explainers/yield-and-continuation.md#introduction)):
> To mitigate yielding performance penalty concerns, UAs prioritize
scheduler.yield() continuations over tasks of the same priority or
similar task sources.
## How did you test this change?
```
yarn test SchedulerPostTask
```
DiffTrain build for commit 0a36064.
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23982,7 +23982,7 @@ function createFiberRoot(
23982
23982
return root;
23983
23983
}
23984
23984
23985
-
var ReactVersion = "18.3.0-canary-fdc8c81e0-20230707";
23985
+
var ReactVersion = "18.3.0-canary-0a360642d-20230711";
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8630,7 +8630,7 @@ var devToolsConfig$jscomp$inline_1032 = {
8630
8630
throwError("TestRenderer does not support findFiberByHostInstance()");
8631
8631
},
8632
8632
bundleType: 0,
8633
-
version: "18.3.0-canary-fdc8c81e0-20230707",
8633
+
version: "18.3.0-canary-0a360642d-20230711",
8634
8634
rendererPackageName: "react-test-renderer"
8635
8635
};
8636
8636
varinternals$jscomp$inline_1231={
@@ -8661,7 +8661,7 @@ var internals$jscomp$inline_1231 = {
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9056,7 +9056,7 @@ var devToolsConfig$jscomp$inline_1074 = {
9056
9056
throwError("TestRenderer does not support findFiberByHostInstance()");
9057
9057
},
9058
9058
bundleType: 0,
9059
-
version: "18.3.0-canary-fdc8c81e0-20230707",
9059
+
version: "18.3.0-canary-0a360642d-20230711",
9060
9060
rendererPackageName: "react-test-renderer"
9061
9061
};
9062
9062
varinternals$jscomp$inline_1272={
@@ -9087,7 +9087,7 @@ var internals$jscomp$inline_1272 = {
0 commit comments