-
Notifications
You must be signed in to change notification settings - Fork 47.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract DOM-specific logic into separate module
- ScheduleDOM contains all DOM-specific scheduling. It's essentially a requestIdleCallback polyfill. - Schedule is host agnostic. There's no concept of a "host config" as yet because we currently target the DOM. However, splitting the logic out this way still has architectural benefits. ScheduleDOM is now almost identical to what it looked like back when this module was part of React. It only needs to handle a single callback; all queuing and ordering is handled by Schedule. Practically, it also makes testing easier, because we can use a Jest mock of ScheduleDOM to test non-DOM-specific features, a la our React Noop tests.
- Loading branch information
Showing
4 changed files
with
517 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.