Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

11 righe
480 B

  1. import { DependencyList } from 'react';
  2. /**
  3. * Identical to `useMemo` _except_ that it provides a semantic guarantee that
  4. * values will not be invalidated unless the dependencies change. This is unlike
  5. * the built in `useMemo` which may discard memoized values for performance reasons.
  6. *
  7. * @param factory A function that returns a value to be memoized
  8. * @param deps A dependency array
  9. */
  10. export default function useStableMemo<T>(factory: () => T, deps?: DependencyList): T;