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. |
||
|---|---|---|
| .. | ||
| chat-record | ||
| chat-variable-panel | ||
| comments-panel | ||
| debug-and-preview | ||
| env-panel | ||
| global-variable-panel | ||
| version-history-panel | ||
| index.tsx | ||
| inputs-panel.tsx | ||
| record.tsx | ||
| workflow-preview.tsx | ||