範例互動防止循環防止循環在驗證範例中,我們看到了如何使用 isValidConnection 回呼來防止建立某些連接。此範例展示如何使用 getOutgoers 工具來檢查新的連接是否會在流程中造成循環。index.htmlApp.tsxexport default function App() { const data: string = "world" return <h1>Hello {data}</h1> } 唯讀在 Stackblitz 中開啟在 Codesandbox 中開啟功能總覽深色模式