-
Notifications
You must be signed in to change notification settings - Fork 47.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop exporting dev-only methods production builds
- Loading branch information
Showing
10 changed files
with
156 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/** | ||
* 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 | ||
*/ | ||
|
||
export { | ||
__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, | ||
__COMPILER_RUNTIME, | ||
cache, | ||
Children, | ||
cloneElement, | ||
Component, | ||
createContext, | ||
createElement, | ||
createRef, | ||
experimental_useEffectEvent, | ||
experimental_useResourceEffect, | ||
forwardRef, | ||
Fragment, | ||
isValidElement, | ||
lazy, | ||
memo, | ||
Profiler, | ||
PureComponent, | ||
startTransition, | ||
StrictMode, | ||
Suspense, | ||
unstable_Activity, | ||
unstable_getCacheForType, | ||
unstable_LegacyHidden, | ||
unstable_Scope, | ||
unstable_SuspenseList, | ||
unstable_TracingMarker, | ||
unstable_useCacheRefresh, | ||
use, | ||
useActionState, | ||
useCallback, | ||
useContext, | ||
useDebugValue, | ||
useDeferredValue, | ||
useEffect, | ||
useId, | ||
useImperativeHandle, | ||
useInsertionEffect, | ||
useLayoutEffect, | ||
useMemo, | ||
useOptimistic, | ||
useReducer, | ||
useRef, | ||
useState, | ||
useSyncExternalStore, | ||
useTransition, | ||
version, | ||
act, // DEV-only | ||
captureOwnerStack, // DEV-only | ||
} from './src/ReactClient'; | ||
|
||
export {jsx, jsxs, jsxDEV} from './src/jsx/ReactJSX'; | ||
|
||
// export for backwards compatibility during upgrade | ||
export {useMemoCache as unstable_useMemoCache} from './src/ReactHooks'; | ||
|
||
// export to match the name of the OSS function typically exported from | ||
// react/compiler-runtime | ||
export {useMemoCache as c} from './src/ReactHooks'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/** | ||
* 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 | ||
*/ | ||
|
||
export { | ||
__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, | ||
__COMPILER_RUNTIME, | ||
Children, | ||
Component, | ||
Fragment, | ||
Profiler, | ||
PureComponent, | ||
StrictMode, | ||
Suspense, | ||
cloneElement, | ||
createContext, | ||
createElement, | ||
createRef, | ||
use, | ||
forwardRef, | ||
isValidElement, | ||
lazy, | ||
memo, | ||
cache, | ||
unstable_useCacheRefresh, | ||
startTransition, | ||
useId, | ||
useCallback, | ||
useContext, | ||
useDebugValue, | ||
useDeferredValue, | ||
useEffect, | ||
useImperativeHandle, | ||
useInsertionEffect, | ||
useLayoutEffect, | ||
useMemo, | ||
useReducer, | ||
useOptimistic, | ||
useRef, | ||
useState, | ||
useSyncExternalStore, | ||
useTransition, | ||
useActionState, | ||
version, | ||
act, // DEV-only | ||
} from './src/ReactClient'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters