Function customRef

  • Creates a customized ref with explicit control over its dependency tracking and updates triggering.

    Type Parameters

    • T

    Parameters

    • factory: CustomRefFactory<T>

      The function that receives the track and trigger callbacks.

    Returns Ref<T>