Files
dify/web/app/components/workflow/hooks
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
..
2026-01-23 14:22:58 +08:00
2026-01-17 22:10:10 +08:00
2025-09-18 12:49:10 +08:00
2026-01-23 14:22:58 +08:00
2026-01-18 13:40:12 +08:00
2026-01-23 14:33:15 +08:00
2026-01-18 13:40:12 +08:00