Home > @pago/reactive > toRefs

toRefs() function

Converts a tracked object into an object of Ref instances.

Signature:

export declare function toRefs<T extends {
    [key: string]: any;
}>(store: Store<T>): RefContainer<T>;

Parameters

Parameter Type Description
store Store<T> A tracked object created through reactive().

Returns:

RefContainer<T>