Function customRef

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

T Target object type.

  • 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.