Skip to main content
You are viewing Pre-Alpha documentation.
Vuetify0 Logo
Mode
Accessibility
Vuetify

toReactive

The toReactive utility function converts a MaybeRef object to a reactive proxy, automatically unwrapping ref values. It provides special handling for Map, Set, and regular objects.

Intermediate100% coverageJan 11, 2026

Usage

ts
import { ref } from 'vue'
import { toReactive } from '@vuetify/v0'

const state = ref({ name: 'John', age: 30 })
const rstate = toReactive(state)

console.log(rstate.name) // 'John' (no .value needed)

Architecture

toReactive creates a Proxy that unwraps ref values:

Reactive Proxy Flow

Use controls to zoom and pan. Click outside or press Escape to close.

Reactive Proxy Flow

API Reference

The following API details are for the toReactive composable.

Functions

toReactive

(objectRef: MaybeRef<Z>) => UnwrapNestedRefs<Z>

Converts a `MaybeRef` to a `UnwrapNestedRefs`.

Was this page helpful?

© 2016-1970 Vuetify, LLC
Ctrl+/