mirror of
https://github.com/langgenius/dify.git
synced 2026-04-10 03:00:33 -04:00
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.