mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
82c8fa90be
Recoil uses useMutableSource behind a flag. I thought this was fine because Recoil isn't used in any concurrent roots, so the behavior would be the same, but it turns out that it is used by concurrent roots in a few places. I'm not expecting it to be hard to migrate to useSyncExternalStore, but to de-risk the change I'm going to roll it out gradually with a flag. In the meantime, I've added back the useMutableSource API.
40 lines
825 B
JavaScript
40 lines
825 B
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 {
|
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
Children,
|
|
Fragment,
|
|
Profiler,
|
|
StrictMode,
|
|
Suspense,
|
|
SuspenseList,
|
|
cloneElement,
|
|
createElement,
|
|
createMutableSource as unstable_createMutableSource,
|
|
createRef,
|
|
forwardRef,
|
|
isValidElement,
|
|
lazy,
|
|
memo,
|
|
startTransition,
|
|
unstable_DebugTracingMode,
|
|
unstable_getCacheForType,
|
|
unstable_useOpaqueIdentifier,
|
|
useCallback,
|
|
useContext,
|
|
useDebugValue,
|
|
useDeferredValue,
|
|
useDeferredValue as unstable_useDeferredValue,
|
|
useMemo,
|
|
useMutableSource as unstable_useMutableSource,
|
|
useTransition,
|
|
version,
|
|
} from './src/React';
|