MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / onConnect

Function onConnect

audio-flow/src/App.tsx:41–44  ·  view source on GitHub ↗
(params: Connection)

Source from the content-addressed store, hash-verified

39 const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges);
40
41 const onConnect = (params: Connection) => {
42 connect(params.source, params.target);
43 setEdges((eds) => addEdge(params, eds))
44 }
45
46 function addOscNode() {
47 const id = Math.random().toString().slice(2, 8);

Callers

nothing calls this directly

Calls 1

connectFunction · 0.90

Tested by

no test coverage detected