/** * As long as the array passed to this hook shallow-equals its previous value, this hook will * return the same array instance. This is useful when writing hooks that accept arrays - it might * be convenient for the consumer of the hook to write their array inline, but that won't have * have referential equality which might make using the array with `useEffect` or similar tricky. * `useArrayIdentity` can wrap that array, making it easier to use with hooks like `useEffect`. * * @internal */ export default function useArrayIdentity(array: ReadonlyArray): ReadonlyArray;