mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 00:20:28 +01:00
* Initial currentLanePriority implementation * Minor updates from review * Fix typos and enable flag * Fix feature flags and lint * Fix simple event tests by switching to withSuspenseConfig * Don't lower the priority of setPending in startTransition below InputContinuous * Move currentUpdateLanePriority in commit root into the first effect block * Refactor requestUpdateLane to log for priority mismatches Also verifies that the update lane priority matches the scheduler lane priority before using it * Fix four tests by adding ReactDOM.unstable_runWithPriority * Fix partial hydration when using update lane priority * Fix partial hydration when using update lane priority * Rename feature flag and only log for now * Move unstable_runWithPriority to ReactFiberReconciler * Add unstable_runWithPriority to ReactNoopPersistent too * Bug fixes and performance improvements * Initial currentLanePriority implementation * Minor updates from review * Fix typos and enable flag * Remove higherLanePriority from ReactDOMEventReplaying.js * Change warning implementation and startTransition update lane priority * Inject reconciler functions to avoid importing src/ * Fix feature flags and lint * Fix simple event tests by switching to withSuspenseConfig * Don't lower the priority of setPending in startTransition below InputContinuous * Move currentUpdateLanePriority in commit root into the first effect block * Refactor requestUpdateLane to log for priority mismatches Also verifies that the update lane priority matches the scheduler lane priority before using it * Fix four tests by adding ReactDOM.unstable_runWithPriority * Fix partial hydration when using update lane priority * Fix partial hydration when using update lane priority * Rename feature flag and only log for now * Move unstable_runWithPriority to ReactFiberReconciler * Bug fixes and performance improvements * Remove higherLanePriority from ReactDOMEventReplaying.js * Change warning implementation and startTransition update lane priority * Inject reconciler functions to avoid importing src/ * Fixes from bad rebase
35 lines
1.0 KiB
JavaScript
35 lines
1.0 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
export {
|
|
createPortal,
|
|
unstable_batchedUpdates,
|
|
flushSync,
|
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
version,
|
|
// Disabled behind disableLegacyReactDOMAPIs
|
|
findDOMNode,
|
|
hydrate,
|
|
render,
|
|
unmountComponentAtNode,
|
|
// exposeConcurrentModeAPIs
|
|
createRoot as unstable_createRoot,
|
|
createBlockingRoot as unstable_createBlockingRoot,
|
|
unstable_flushControlled,
|
|
unstable_scheduleHydration,
|
|
// DO NOT USE: Temporarily exposing this to migrate off of Scheduler.runWithPriority.
|
|
unstable_runWithPriority,
|
|
// Disabled behind disableUnstableRenderSubtreeIntoContainer
|
|
unstable_renderSubtreeIntoContainer,
|
|
// Disabled behind disableUnstableCreatePortal
|
|
// Temporary alias since we already shipped React 16 RC with it.
|
|
// TODO: remove in React 18.
|
|
unstable_createPortal,
|
|
} from './src/client/ReactDOM';
|