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

Sign in

Sign in with your preferred provider to access your account.

useProxyRegistry

A reactive proxy wrapper for registry collections that automatically updates refs when items are registered or unregistered.


Advanced100% coverageBlazing FastFeb 4, 2026

Usage

The useProxyRegistry composable creates reactive objects that automatically sync with a registry’s state. It listens for registry changes and updates the reactive properties accordingly, making it ideal for template-driven UIs that need to react to registry mutations.

Important: The registry must have events: true enabled for the proxy to receive updates.

ts
import { createRegistry, useProxyRegistry } from '@vuetify/v0'

const registry = createRegistry({ events: true })
const proxy = useProxyRegistry(registry)

registry.register({ value: 'Item 1' })
registry.register({ value: 'Item 2' })

console.log(proxy.size) // 2
console.log(proxy.keys) // [id1, id2]

Architecture

useProxyRegistry creates a reactive proxy over registry collections:

Proxy Registry Flow

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

Proxy Registry Flow

Reactivity

useProxyRegistry returns a fully reactive object that syncs with registry events. Use it to expose registry data in Vue templates.

PropertyReactiveNotes
keysUpdates on register/unregister
valuesUpdates on register/unregister/update
entriesUpdates on any ticket change
sizeUpdates on register/unregister
Tip

Deep vs shallow Pass { deep: true } for reactive(), or omit for shallowReactive() (default). Shallow is more performant when ticket internals don’t need tracking.

API Reference

The following API details are for the useProxyRegistry composable.

Functions

useProxyRegistry

(registry: RegistryContext<Z>, options?: ProxyRegistryOptions) => ProxyRegistryContext<Z>

Creates a proxy registry that provides reactive objects for registry data.

Options

deep

boolean

Properties

keys

ID[]

entries

[ID, Z][]

size

number

Frequently Asked Questions

Benchmarks

Every operation is profiled across multiple dataset sizes to measure real-world throughput. Each benchmark is assigned a performance tier—good, fast, blazing, or slow—and groups are scored by averaging their individual results so you can spot bottlenecks at a glance. This transparency helps you make informed decisions about which patterns scale for your use case. Learn more in the benchmarks guide.

View benchmark source↗

Was this page helpful?

© 2016-1970 Vuetify, LLC
Ctrl+/