Skip to content

Commit 8e54638

Browse files
committed
Can't use the private field to check
1 parent 160510d commit 8e54638

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/react-transport-dom-relay/src/__mocks__/JSResourceReference.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ class JSResourceReference {
1111
constructor(exportedValue) {
1212
this._moduleId = exportedValue;
1313
}
14+
getModuleID() {
15+
return this._moduleId;
16+
}
1417
}
1518

1619
module.exports = JSResourceReference;

packages/shared/isValidElementType.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function isValidElementType(type: mixed) {
6464
// we don't know which Flight build this will end up being used
6565
// with.
6666
type.$$typeof === REACT_MODULE_REFERENCE ||
67-
type._moduleId !== undefined ||
67+
type.getModuleID !== undefined ||
6868
type.$$typeof === REACT_BLOCK_TYPE ||
6969
type[(0: any)] === REACT_SERVER_BLOCK_TYPE
7070
) {

0 commit comments

Comments
 (0)