mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
Consolidate file type derivations into a single useMemo with stable dependencies (currentFileNode?.name and currentFileNode?.extension) to help React Compiler track stability. Extract originalContent as a separate variable to avoid property access in useCallback dependencies, which caused Compiler to infer broader dependencies than specified. |
||
|---|---|---|
| .. | ||
| editor | ||
| file-tree | ||
| hooks | ||
| utils | ||
| editor-area.tsx | ||
| editor-body.tsx | ||
| editor-tab-item.tsx | ||
| editor-tabs.tsx | ||
| main.tsx | ||
| sidebar-search-add.tsx | ||
| sidebar.tsx | ||
| skill-doc-editor.tsx | ||
| skill-page-layout.tsx | ||
| type.ts | ||