Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

349 B
Raw Blame
import { BezierEdge, type EdgeProps, useNodesInitialized } from "@xyflow/react";

export function GraphEdge({ style, ...props }: EdgeProps) {
  const isInitialized = useNodesInitialized();

  return (
    <BezierEdge
      {...props}
      style={{
        ...style,
        visibility: !isInitialized ? "hidden" : undefined,
      }}
    />
  );
}