Files
dify/web/app
yyh 04f85b0ff2 refactor(web): defer state reads to usage point for Zustand stores
Apply "defer state reads to usage point" principle to fix real
anti-patterns where state properties were subscribed but only used
in callbacks, not in JSX render:

- env-panel/variable-modal.tsx: envList, envSecrets -> getState()
- chat-variable-panel/variable-modal.tsx: varList -> getState()
- publish-as-knowledge-pipeline-modal.tsx: knowledgeName, knowledgeIcon
  -> lazy useState initialization with getState()
- rag-pipeline-header/index.tsx: remove unused showDebugAndPreviewPanel
  subscription and dead code cleanup
2026-01-18 01:46:51 +08:00
..
2026-01-14 17:20:49 +08:00
2025-12-23 16:58:55 +08:00