dify/web/app/components/workflow/skill/hooks
yyh 0f5d3f38da
refactor(skill): use node.parent chain for ancestor traversal
Replace getAncestorIds(treeData) with node.parent chain traversal
for more efficient ancestor lookup. This avoids re-traversing the
tree data structure and uses react-arborist's built-in parent refs.

Also rename hook to useSyncTreeWithActiveTab for clarity.
2026-01-16 14:27:21 +08:00
..
use-delayed-click.ts fix(skill): address code review issues for tab management 2026-01-16 11:20:49 +08:00
use-file-operations.ts refactor(skill): move skill editor slice to core workflow store 2026-01-16 13:51:50 +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
use-sync-tree-with-active-tab.ts refactor(skill): use node.parent chain for ancestor traversal 2026-01-16 14:27:21 +08:00
use-tree-node-handlers.ts refactor(skill): extract tree node handlers into reusable hooks 2026-01-16 14:15:21 +08:00