mirror of
https://github.com/langgenius/dify.git
synced 2026-03-17 21:07:58 +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.