Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[schedule] Refactor Schedule, remove React-isms #13582

Merged
merged 2 commits into from
Sep 14, 2018

Commits on Sep 12, 2018

  1. Refactor Schedule, remove React-isms

    Once the API stabilizes, we will move Schedule this into a separate
    repo. To promote adoption, especially by projects outside the React
    ecosystem, we'll remove all React-isms from the source and keep it as
    simple as possible:
    
    - No build step.
    - No static types.
    - Everything is in a single file.
    
    If we end up needing to support multiple targets, like CommonJS and ESM,
    we can still avoid a build step by maintaining two copies of the same
    file, but with different exports.
    
    This commit also refactors the implementation to split out the DOM-
    specific parts (essentially a requestIdleCallback polyfill). Aside from
    the architectural benefits, this also makes it possible to write host-
    agnostic tests. If/when we publish a version of Schedule that targets
    other environments, like React Native, we can run these same tests
    across all implementations.
    acdlite committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    7c4ff13 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2018

  1. Configuration menu
    Copy the full SHA
    5f74f04 View commit details
    Browse the repository at this point in the history