mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
When switching from graph view to skill view during an active preview run, SSE callbacks continue executing and attempt to update ReactFlow node/edge states. This could cause errors since the component is unmounted. Add optional `isMountedRef` parameter to `useNodesInteractionsWithoutSync` and `useEdgesInteractionsWithoutSync` hooks. When provided, operations are skipped if the component has unmounted, preventing potential errors while allowing the SSE connection to continue running in the background. BREAKING CHANGE: `useNodesInteractionsWithoutSync` and `useEdgesInteractionsWithoutSync` now accept an optional `isMountedRef` parameter. Existing callers are unaffected as the parameter is optional. |
||
|---|---|---|
| .. | ||
| (commonLayout) | ||
| (shareLayout) | ||
| account | ||
| activate | ||
| components | ||
| education-apply | ||
| forgot-password | ||
| init | ||
| install | ||
| oauth-callback | ||
| repos/[owner]/[repo]/releases | ||
| reset-password | ||
| serwist/[path] | ||
| signin | ||
| signup | ||
| styles | ||
| layout.tsx | ||
| page.tsx | ||
| routePrefixHandle.tsx | ||
| sw.ts | ||