import { useMemo } from 'react' ; import { checkDeps , useDeepCompareMemoize } from './useDeepCompareMemoize' ; import { isDev } from '@/utils/env' ; export function useDeepCompareMemo < T > ( factory , dependencies ) { if ( isDev ) { checkDeps ( dependencies , 'useDeepCompareMemo' ) ; } return useMemo ( factory , useDeepCompareMemoize ( dependencies ) ) ; }