Function customRef

  • Creates a custom ref to an object, which in its snapshot form has an id.

    Type Parameters

    • T extends object

    Parameters

    • modelTypeId: string

      Unique model type id.

    • options: CustomRefOptions<T>

      Custom reference options.

    Returns RefConstructor<T>

    A function that allows you to construct that type of custom reference.

    Typeparam

    T Target object type.