feat(noderenderer): render child nodes

This commit is contained in:
Christopher Möller
2021-10-20 16:57:44 +02:00
parent a0b8aa6fcb
commit 767fbd4377
8 changed files with 180 additions and 69 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ import {
HandleType,
ReactFlowState,
} from '../../types';
import { flattenNodes } from '../../utils/graph';
interface ConnectionLineProps {
connectionNodeId: ElementId;
@@ -28,7 +29,7 @@ interface ConnectionLineProps {
CustomConnectionLineComponent?: ConnectionLineComponent;
}
const nodesSelector = (s: ReactFlowState) => s.nodes;
const nodesSelector = (s: ReactFlowState) => flattenNodes(s.nodes);
export default ({
connectionNodeId,