Merge branch 'main' into feat/packages

This commit is contained in:
moklick
2023-05-17 11:44:39 +02:00
19 changed files with 126 additions and 24 deletions
@@ -1,4 +1,4 @@
import React, { useState, memo, FC, useMemo, CSSProperties } from 'react';
import { useState, memo, FC, useMemo, CSSProperties } from 'react';
import { Handle, Position, NodeProps, useUpdateNodeInternals } from 'reactflow';
const nodeStyles: CSSProperties = { padding: 10, border: '1px solid #ddd' };
@@ -23,7 +23,7 @@ const CustomNode: FC<NodeProps> = ({ id }) => {
<button
onClick={() => {
setHandleCount((c) => c + 1);
updateNodeInternals(id);
updateNodeInternals([id]);
}}
>
add handle