mirror of
https://github.com/langgenius/dify.git
synced 2026-02-27 11:55:12 +00: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.