mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
The internal file ReactSharedSubset is what the `react` module resolves to when imported from a Server Component environment. We gave it this name because, originally, the idea was that Server Components can access a subset of the APIs available on the client. However, since then, we've also added APIs that can _only_ by accessed on the server and not the client. In other words, it's no longer a subset, it's a slightly different overlapping set. So this commit renames ReactSharedSubet to ReactServer and updates all the references. This does not affect the public API, only our internal implementation.
52 lines
1.1 KiB
JavaScript
52 lines
1.1 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
|
|
*/
|
|
|
|
// Patch fetch
|
|
import './ReactFetch';
|
|
|
|
export {default as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} from './ReactSharedInternalsServer';
|
|
|
|
export {default as __SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} from './ReactServerSharedInternals';
|
|
|
|
// These are server-only
|
|
export {
|
|
taintUniqueValue as experimental_taintUniqueValue,
|
|
taintObjectReference as experimental_taintObjectReference,
|
|
} from './ReactTaint';
|
|
|
|
export {
|
|
Children,
|
|
Fragment,
|
|
Profiler,
|
|
StrictMode,
|
|
Suspense,
|
|
cloneElement,
|
|
createElement,
|
|
createRef,
|
|
createServerContext,
|
|
use,
|
|
forwardRef,
|
|
isValidElement,
|
|
lazy,
|
|
memo,
|
|
cache,
|
|
startTransition,
|
|
unstable_DebugTracingMode,
|
|
unstable_SuspenseList,
|
|
unstable_getCacheSignal,
|
|
unstable_getCacheForType,
|
|
unstable_postpone,
|
|
useId,
|
|
useCallback,
|
|
useContext,
|
|
useDebugValue,
|
|
useMemo,
|
|
version,
|
|
} from './React';
|