dify/web/app/components/workflow/panel/debug-and-preview
yyh 8332f0de2b
fix(workflow): reinitialize mounted ref on effect setup for StrictMode
In React StrictMode (dev mode), effects are run twice to help detect
side effects. The cleanup-only pattern left isMountedRef as false after
StrictMode's simulated unmount-remount cycle, causing stop/cancel
operations to be skipped even when the component was mounted.

Now the effect setup explicitly sets isMountedRef.current = true,
ensuring correct behavior in both development and production.
2026-01-27 01:23:08 +08:00
..
hooks fix(workflow): reinitialize mounted ref on effect setup for StrictMode 2026-01-27 01:23:08 +08:00
chat-wrapper.tsx 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
conversation-variable-modal.tsx fix: enforce no-leaked-conditional-rendering as error and fix violations (#31262) 2026-01-20 23:08:59 +08:00
empty.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
index.spec.tsx refactor(web): migrate to Vitest and esm (#29974) 2025-12-22 16:35:22 +08:00
index.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
user-input.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00