import { useEffect } from 'react' ; import { checkDeps , useDeepCompareMemoize } from './useDeepCompareMemoize' ; import { isDev } from '@/utils/env' ; export function useDeepCompareEffect ( effect , dependencies ) { if ( isDev ) { checkDeps ( dependencies , 'useDeepCompareEffect' ) ; } useEffect ( effect , useDeepCompareMemoize ( dependencies ) ) ; }