dify/web/app/components/workflow/panel
yyh a0188bd9b5
fix(workflow)!: add mounted guard to prevent ReactFlow operations after unmount
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.
2026-01-27 00:43:58 +08:00
..
chat-record fix: history messages toolcalls 2026-01-20 17:37:23 +08:00
chat-variable-panel Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-01-24 15:22:07 +08:00
comments-panel whether resolved sync to canvas 2026-01-20 10:12:15 +08:00
debug-and-preview fix(workflow)!: add mounted guard to prevent ReactFlow operations after unmount 2026-01-27 00:43:58 +08:00
env-panel Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-01-19 21:15:53 +08:00
global-variable-panel feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
version-history-panel new restore 2026-01-23 14:22:58 +08:00
index.tsx perf: Replace topOffset prop with withHeader in Panel component 2026-01-15 16:44:15 +08:00
inputs-panel.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
record.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
workflow-preview.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00