mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
This is similar to #28771 but for isomorphic. We need a make over for these dispatchers anyway so this is the first step. Also helps flush out some internals usage that will break anyway. It flattens the inner mutable objects onto the ReactSharedInternals.
63 lines
1.6 KiB
JavaScript
63 lines
1.6 KiB
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
import * as React from 'react';
|
|
|
|
const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
|
|
const {
|
|
unstable_cancelCallback,
|
|
unstable_now,
|
|
unstable_scheduleCallback,
|
|
unstable_shouldYield,
|
|
unstable_requestPaint,
|
|
unstable_getFirstCallbackNode,
|
|
unstable_runWithPriority,
|
|
unstable_next,
|
|
unstable_continueExecution,
|
|
unstable_pauseExecution,
|
|
unstable_getCurrentPriorityLevel,
|
|
unstable_ImmediatePriority,
|
|
unstable_UserBlockingPriority,
|
|
unstable_NormalPriority,
|
|
unstable_LowPriority,
|
|
unstable_IdlePriority,
|
|
unstable_forceFrameRate,
|
|
|
|
// this doesn't actually exist on the scheduler, but it *does*
|
|
// on scheduler/unstable_mock, which we'll need inside act()
|
|
// and for internal testing
|
|
unstable_flushAllWithoutAsserting,
|
|
log,
|
|
unstable_setDisableYieldValue,
|
|
} = ((ReactInternals: any).Scheduler: any);
|
|
|
|
export {
|
|
unstable_cancelCallback,
|
|
unstable_now,
|
|
unstable_scheduleCallback,
|
|
unstable_shouldYield,
|
|
unstable_requestPaint,
|
|
unstable_getFirstCallbackNode,
|
|
unstable_runWithPriority,
|
|
unstable_next,
|
|
unstable_continueExecution,
|
|
unstable_pauseExecution,
|
|
unstable_getCurrentPriorityLevel,
|
|
unstable_ImmediatePriority,
|
|
unstable_UserBlockingPriority,
|
|
unstable_NormalPriority,
|
|
unstable_LowPriority,
|
|
unstable_IdlePriority,
|
|
unstable_forceFrameRate,
|
|
unstable_flushAllWithoutAsserting,
|
|
log,
|
|
unstable_setDisableYieldValue,
|
|
};
|