dify/web/app/components/workflow
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
..
__tests__ chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
block-selector Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
collaboration improve compute nodes diff speed 2026-01-24 15:04:51 +08:00
comment add unittests 2026-01-19 21:11:44 +08:00
constants feat: add Command node support 2026-01-06 19:30:38 +08:00
custom-group-node Merge branch 'main' into feat/grouping-branching 2025-12-23 23:55:21 +08:00
datasets-detail-store chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
header fix header 2026-01-25 00:16:30 +08:00
help-line chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
hooks fix(workflow)!: add mounted guard to prevent ReactFlow operations after unmount 2026-01-27 00:43:58 +08:00
hooks-store Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
nodes chore: prompt change also clear useless tool id 2026-01-26 18:29:38 +08:00
note-node fix(web): disable HTML escaping for form field validation messages (#31292) 2026-01-20 18:43:01 +08:00
operator fix web style 2026-01-18 13:40:12 +08:00
panel fix(workflow)!: add mounted guard to prevent ReactFlow operations after unmount 2026-01-27 00:43:58 +08:00
plugin-dependency chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
run fix: check and update doc links (#30849) 2026-01-22 16:13:09 +08:00
simple-node chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
skill fix(workflow): make FileTree and ArtifactsSection scroll independently 2026-01-27 00:14:33 +08:00
store refactor(workflow)!: persist the debug state of the chatflow preview panel to the zustand store and split useChat hook into modular files 2026-01-26 23:21:44 +08:00
utils chore: remove useless toolid 2026-01-26 18:09:46 +08:00
variable-inspect feat: Add support for array[message](List[promptMessage]) variable type 2026-01-26 17:50:18 +08:00
workflow-preview Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-22 22:40:32 +08:00
block-icon.tsx Merge branch 'feat/pull-a-variable' into feat/support-agent-sandbox 2026-01-20 09:54:41 +08:00
candidate-node-main.tsx Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-01-17 10:22:41 +08:00
candidate-node.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
comment-manager.tsx fix web style 2026-01-17 22:10:10 +08:00
constants.ts fix: llm generation variable 2026-01-21 14:57:54 +08:00
context.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
custom-connection-line.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
custom-edge-linear-gradient-render.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
custom-edge.tsx feat: sub-graph to use dynamic node generation 2026-01-13 22:28:30 +08:00
dsl-export-confirm-modal.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
features.tsx fix: Add sandbox feature to workflow features mapping 2026-01-25 16:30:50 +08:00
index.tsx Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
node-contextmenu.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
panel-contextmenu.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
selection-contextmenu.tsx Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
shortcuts-name.tsx feat: paste operation for skill file tree 2026-01-20 15:42:53 +08:00
style.css
syncing-data-modal.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
types.ts feat: Add support for array[message](List[promptMessage]) variable type 2026-01-26 17:50:18 +08:00
update-dsl-modal.tsx Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
view-picker.tsx feat: align workflow view picker layout 2026-01-22 16:13:09 +08:00
workflow-history-store.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00