Comment Comment by DanielHB I was thinking mainly cases like thisconst nestedDependency = { a: { b: { c: 'c' } } }useMemo(() => nestedDependency.a.b.c, [nestedDependency])vsuseMemo(() => nestedDependency.a.b.c, [nestedDependency.a.b.c])neither triggers react hook lint warnings, although I guess this is more relevant to useEffect than memoization. parent DanielHB 4 months ago
const nestedDependency = { a: { b: { c: 'c' } } }
useMemo(() => nestedDependency.a.b.c, [nestedDependency])
vs
useMemo(() => nestedDependency.a.b.c, [nestedDependency.a.b.c])
neither triggers react hook lint warnings, although I guess this is more relevant to useEffect than memoization.