Skip to content

Commit f4878c6

Browse files
Nileffankri
andauthored
fix: forward props to related components (#233)
Co-authored-by: Andy Krings-Stern <[email protected]>
1 parent 4127366 commit f4878c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/utils/createNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ export function createNode(
128128
};
129129

130130
Object.keys(userComponentConfig.related).forEach((comp) => {
131-
node.related[comp] = () =>
131+
node.related[comp] = (props) =>
132132
React.createElement(
133133
NodeProvider,
134134
relatedNodeContext,
135-
React.createElement(userComponentConfig.related[comp])
135+
React.createElement(userComponentConfig.related[comp], props)
136136
);
137137
});
138138
}

0 commit comments

Comments
 (0)