Skip to content

Commit

Permalink
Avoid importing Scheduler directly (#14757)
Browse files Browse the repository at this point in the history
* Avoid importing Scheduler directly

The reconciler should not depend directly on Scheduler. This adds it to
the host config for the renderer instead.

(Except for `scheduler/tracing` imports, which are used only by the
profiling build. I've left those imports as-is, though I'm open to
directing those through the host config, too.)

* Make throwaway root id longer to appease Brian
  • Loading branch information
acdlite authored Feb 5, 2019
1 parent a263457 commit 76dd9f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ReactTestHostConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ export const shouldYield = TestRendererSchedulingShouldYield;
export const scheduleTimeout = setTimeout;
export const cancelTimeout = clearTimeout;
export const noTimeout = -1;
export const schedulePassiveEffects = scheduleDeferredCallback;
export const cancelPassiveEffects = cancelDeferredCallback;

// -------------------
// Mutation
Expand Down

0 comments on commit 76dd9f3

Please sign in to comment.