dify/web/app/components/workflow/skill/hooks
yyh 3b6946d3da
refactor(skill): centralize asset tree data fetching with custom hooks
Extract repeated appId retrieval and tree data fetching patterns into
dedicated hooks (useSkillAssetTreeData, useSkillAssetNodeMap) to reduce
code duplication across 6 components and leverage TanStack Query's
select option for efficient nodeMap computation.
2026-01-15 19:45:33 +08:00
..
use-file-operations.ts refactor(skill): centralize asset tree data fetching with custom hooks 2026-01-15 19:45:33 +08:00
use-skill-asset-tree.ts refactor(skill): centralize asset tree data fetching with custom hooks 2026-01-15 19:45:33 +08:00