dify/web/app/components/base/markdown
yyh 772dbe620d
fix(workflow): disable view switch during preview run instead of mounted guard
Simpler approach: disable the view picker toggle when preview is running,
preventing users from switching views during active runs.

This replaces the previous mounted ref guard approach (commits a0188bd9b5,
b7f1eb9b7b, 8332f0de2b) which added complexity to handle post-unmount
operations. Disabling the toggle is more direct and follows KISS principle.

Changes:
- Add disabled prop to ViewPicker based on isResponding state
- Revert mounted ref guards in use-chat-flow-control.ts
- Revert isMountedRef parameter in use-nodes/edges-interactions-without-sync.ts
- Revert defensive type check in markdown-utils.ts (no longer needed)
2026-01-27 01:31:22 +08:00
..
error-boundary.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
index.stories.tsx chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
index.tsx chore(web): migrate lodash-es to es-toolkit compat (#30126) 2025-12-25 09:44:57 +08:00
markdown-utils.ts fix(workflow): disable view switch during preview run instead of mounted guard 2026-01-27 01:31:22 +08:00
react-markdown-wrapper.spec.tsx fix(web): disable single tilde strikethrough in markdown rendering (#31400) 2026-01-22 16:33:17 +08:00
react-markdown-wrapper.tsx fix(web): disable single tilde strikethrough in markdown rendering (#31400) 2026-01-22 16:33:17 +08:00