Skip to main content
Vuetify0 is now in alpha!
Vuetify0 Logo
Theme
Mode
Palettes
Accessibility
Vuetify One
Sign in to Vuetify One

Access premium tools across the Vuetify ecosystem — Bin, Play, Studio, and more.

Not a subscriber? See what's included

useProxyRegistry

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


AdvancedApr 7, 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.

Frequently Asked Questions

Examples

Notification Center

A registry-based notification queue using useProxyRegistry to make the item list reactively drive the template without manual event subscriptions.

Notifications2
Proxy state
size3keysn-1, n-2, n-3unread2

Build succeeded

success · #0

Disk usage at 85%

warning · #1

New user signed up

info · #2

API Reference

The following API details are for the useProxyRegistry composable.

Functions

useProxyRegistry

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

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

Options

deep

boolean | undefined

Properties

keys

readonly ID[]

values

readonly Z[]

entries

readonly [ID, Z][]

size

number

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+/