From 37dbd1c7b1d5313fd6f3090162b23864b678441b Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Fri, 9 Nov 2018 12:37:03 -0800 Subject: [PATCH] Renamed outdated schedule/tracing referecnes (#14177) --- packages/react-reconciler/src/ReactFiberScheduler.js | 4 ++-- .../src/__tests__/ReactTracing-test.internal.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-reconciler/src/ReactFiberScheduler.js b/packages/react-reconciler/src/ReactFiberScheduler.js index cebb87ff5a4b8..effcbc0ca10dd 100644 --- a/packages/react-reconciler/src/ReactFiberScheduler.js +++ b/packages/react-reconciler/src/ReactFiberScheduler.js @@ -180,11 +180,11 @@ let warnAboutInvalidUpdates; if (enableSchedulerTracing) { // Provide explicit error message when production+profiling bundle of e.g. react-dom - // is used with production (non-profiling) bundle of schedule/tracing + // is used with production (non-profiling) bundle of scheduler/tracing invariant( __interactionsRef != null && __interactionsRef.current != null, 'It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) ' + - 'without also replacing the `schedule/tracing` module with `schedule/tracing-profiling`. ' + + 'without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. ' + 'Your bundler might have a setting for aliasing both modules. ' + 'Learn more at http://fb.me/react-profiling', ); diff --git a/packages/react-reconciler/src/__tests__/ReactTracing-test.internal.js b/packages/react-reconciler/src/__tests__/ReactTracing-test.internal.js index 3228614fee0a9..2f45ad48caf90 100644 --- a/packages/react-reconciler/src/__tests__/ReactTracing-test.internal.js +++ b/packages/react-reconciler/src/__tests__/ReactTracing-test.internal.js @@ -11,7 +11,7 @@ 'use strict'; describe('ReactTracing', () => { - it('should error if profiling renderer and non-profiling schedule/tracing bundles are combined', () => { + it('should error if profiling renderer and non-profiling scheduler/tracing bundles are combined', () => { jest.resetModules(); const ReactFeatureFlags = require('shared/ReactFeatureFlags');