Skip to content

Commit 664b936

Browse files
committed
Revert "Rename internal fields (#18377)"
This reverts commit 2ba43ed.
1 parent f66dc55 commit 664b936

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/react-dom/src/client/ReactDOMComponentTree.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ import {getParentSuspenseInstance} from './ReactDOMHostConfig';
3030
const randomKey = Math.random()
3131
.toString(36)
3232
.slice(2);
33-
const internalInstanceKey = '__reactFiber$' + randomKey;
34-
const internalEventHandlersKey = '__reactEvents$' + randomKey;
35-
const internalContainerInstanceKey = '__reactContainer$' + randomKey;
36-
const internalEventListenersKey = '__reactListeners$' + randomKey;
33+
const internalInstanceKey = '__reactInternalInstance$' + randomKey;
34+
const internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
35+
const internalContainerInstanceKey = '__reactContainere$' + randomKey;
36+
const internalEventListenersKey = '__reactEventListeners$' + randomKey;
3737

3838
export function precacheFiberNode(
3939
hostInst: Fiber,

packages/shared/ReactInstanceMap.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
* supported we can rename it.
2222
*/
2323
export function remove(key) {
24-
key._reactInternals = undefined;
24+
key._reactInternalFiber = undefined;
2525
}
2626

2727
export function get(key) {
28-
return key._reactInternals;
28+
return key._reactInternalFiber;
2929
}
3030

3131
export function has(key) {
32-
return key._reactInternals !== undefined;
32+
return key._reactInternalFiber !== undefined;
3333
}
3434

3535
export function set(key, value) {
36-
key._reactInternals = value;
36+
key._reactInternalFiber = value;
3737
}

0 commit comments

Comments
 (0)