react/packages
Andrew Clark 6e1756a5a9
Move suspended render logic to ensureRootIsScheduled (#26328)
When the work loop is suspended, we shouldn't schedule a new render task
until the promise has resolved. When I originally implemented this, I
wasn't sure where to put this logic — `ensureRootIsScheduled` is the
more natural place for it, but that's also a really hot path, so I chose
to do it elsewhere, and left a TODO to reconsider later.

Now it's later. I'm working on a refactor to move the
`ensureRootIsScheduled` call to always happen in a microtask, so that if
there are multiple updates/pings in a single event, they get batched
into a single operation. Which means I can put the logic in that
function where it belongs.
2023-03-06 12:27:48 -05:00
..
dom-event-testing-library Update jest printBasicPrototype config (#26142) 2023-02-10 09:58:57 +01:00
eslint-plugin-react-hooks Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
internal-test-utils SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
jest-react SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
react SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
react-art Cleanup enableSyncDefaultUpdate flag (#26236) 2023-02-27 14:04:02 -05:00
react-cache SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
react-client SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
react-debug-tools Codemod tests to waitFor pattern (2/?) (#26296) 2023-03-03 17:01:57 -05:00
react-devtools [DevTools] improve troubleshooting in README (#26235) 2023-03-03 14:02:21 -05:00
react-devtools-core React DevTools 4.27.1 -> 4.27.2 (#26185) 2023-02-16 16:46:23 -05:00
react-devtools-extensions Upgrade Flow to 0.201 (#26326) 2023-03-06 10:33:22 -05:00
react-devtools-inline React DevTools 4.27.1 -> 4.27.2 (#26185) 2023-02-16 16:46:23 -05:00
react-devtools-shared SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
react-devtools-shell Upgrade Flow to 0.201 (#26326) 2023-03-06 10:33:22 -05:00
react-devtools-timeline React DevTools 4.27.1 -> 4.27.2 (#26185) 2023-02-16 16:46:23 -05:00
react-dom SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
react-dom-bindings [Fizz] External runtime: fix bug in processing existing elements (#26303) 2023-03-04 11:26:59 -05:00
react-interactions [flow] enable LTI inference mode (#26104) 2023-02-09 17:07:39 -05:00
react-is [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
react-native-renderer Extract duplicated methods in Fabric and the legacy renderer to a shared module (#26319) 2023-03-06 10:51:59 +00:00
react-noop-renderer SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
react-reconciler Move suspended render logic to ensureRootIsScheduled (#26328) 2023-03-06 12:27:48 -05:00
react-refresh SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
react-server Upgrade Flow to 0.201 (#26326) 2023-03-06 10:33:22 -05:00
react-server-dom-relay Simplify Webpack References by encoding file path + export name as single id (#26300) 2023-03-04 19:51:34 -05:00
react-server-dom-webpack [Flight] Send server reference error chunks to the client (#26293) 2023-03-04 22:56:19 -05:00
react-server-native-relay Simplify Webpack References by encoding file path + export name as single id (#26300) 2023-03-04 19:51:34 -05:00
react-suspense-test-utils [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
react-test-renderer SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
scheduler SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
shared SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
use-subscription SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00
use-sync-external-store SchedulerMock.unstable_yieldValue -> SchedulerMock.log (#26312) 2023-03-06 11:09:07 -05:00