mirror of
https://github.com/langgenius/dify.git
synced 2026-03-25 08:18:02 +08:00
Use useRef for batchUpload and emitTreeUpdate to remove unstable dependencies from useCallback, preventing unnecessary memo invalidation on all 16 TemplateCard components. Wrap filtered list in useMemo and replace && conditional with ternary for rendering safety.