-
Notifications
You must be signed in to change notification settings - Fork 47.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some of the internals are shared in shared/
Like ReactDebugCurrentFrame. So we preserve those simple cases on the old name while still moving dispatcher and cache to the separate one.
- Loading branch information
1 parent
bab361f
commit d0e6f20
Showing
9 changed files
with
57 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
import ReactCurrentDispatcher from './ReactCurrentDispatcher'; | ||
import ReactCurrentCache from './ReactCurrentCache'; | ||
|
||
const ReactServerSharedInternals = { | ||
ReactCurrentDispatcher, | ||
ReactCurrentCache, | ||
}; | ||
|
||
export default ReactServerSharedInternals; |
File renamed without changes.
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,25 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
import ReactCurrentOwner from './ReactCurrentOwner'; | ||
import ReactDebugCurrentFrame from './ReactDebugCurrentFrame'; | ||
import {enableServerContext} from 'shared/ReactFeatureFlags'; | ||
import {ContextRegistry} from './ReactServerContextRegistry'; | ||
|
||
const ReactSharedInternals = { | ||
ReactCurrentOwner, | ||
}; | ||
|
||
if (__DEV__) { | ||
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; | ||
} | ||
|
||
if (enableServerContext) { | ||
ReactSharedInternals.ContextRegistry = ContextRegistry; | ||
} | ||
|
||
export default ReactSharedInternals; |
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