We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3497ccc commit 048879eCopy full SHA for 048879e
packages/react-reconciler/src/ReactFiberScope.js
@@ -31,6 +31,8 @@ function getSuspenseFallbackChild(fiber: Fiber): Fiber | null {
31
return ((((fiber.child: any): Fiber).sibling: any): Fiber).child;
32
}
33
34
+const emptyObject = {};
35
+
36
function collectScopedNodes(
37
node: Fiber,
38
fn: (type: string | Object, props: Object) => boolean,
@@ -39,7 +41,7 @@ function collectScopedNodes(
39
41
if (enableScopeAPI) {
40
42
if (node.tag === HostComponent) {
43
const {type, memoizedProps} = node;
- if (fn(type, memoizedProps) === true) {
44
+ if (fn(type, memoizedProps || emptyObject) === true) {
45
scopedNodes.push(getPublicInstance(node.stateNode));
46
47
0 commit comments