React Hookers - v6.3.0
    Preparing search index...

    Function useCachedValue

    • Returns the value from the previous render if it is considered equal to the newly provided value according to the comparator.

      Type Parameters

      • T

      Parameters

      • value: T

        The current value.

      • comparator: (prevValue: T, nextValue: T) => boolean

        A function that compares the previous and next values.

      Returns T