Conceptual
Login

shallowRef and Shallow Reactivity

shallowRef tracks only .value replacement, skipping deep Proxy conversion of the inner object, so large immutable-style data structures avoid per-property tracking overhead; updates require assigning a new object (or calling triggerRef), making it the performance tool for big lists, external state, and integration objects.

This Concept is waiting for its first lesson!

shallowRef tracks only .value replacement, skipping deep Proxy conversion of the inner object, so large immutable-style data structures avoid per-property tracking overhead; updates require assigning a new object (or calling triggerRef), making it the performance tool for big lists, external state, and integration objects.

Are you a teacher? Sign in to start contributing.

Sign In