mirror of
https://github.com/langgenius/dify.git
synced 2026-06-19 05:37:10 +08:00
c0a76220dd
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.