mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Update entry point exports (#21488)
The following APIs have been added to the `react` stable entry point: * `SuspenseList` * `startTransition` * `unstable_createMutableSource` * `unstable_useMutableSource` * `useDeferredValue` * `useTransition` The following APIs have been added or removed from the `react-dom` stable entry point: * `createRoot` * `unstable_createPortal` (removed) The following APIs have been added to the `react-is` stable entry point: * `SuspenseList` * `isSuspenseList` The following feature flags have been changed from experimental to true: * `enableLazyElements` * `enableSelectiveHydration` * `enableSuspenseServerRenderer`
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
*/
|
||||
|
||||
import {
|
||||
unstable_getCacheForType,
|
||||
unstable_startTransition as startTransition,
|
||||
unstable_getCacheForType as getCacheForType,
|
||||
startTransition,
|
||||
} from 'react';
|
||||
import Store from './devtools/store';
|
||||
import {inspectElement as inspectElementMutableSource} from './inspectedElementMutableSource';
|
||||
@@ -60,7 +60,7 @@ function createMap(): InspectedElementMap {
|
||||
}
|
||||
|
||||
function getRecordMap(): WeakMap<Element, Record<InspectedElementFrontend>> {
|
||||
return unstable_getCacheForType(createMap);
|
||||
return getCacheForType(createMap);
|
||||
}
|
||||
|
||||
function createCacheSeed(
|
||||
|
||||
Reference in New Issue
Block a user