A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://vuejs.org/api/reactivity-advanced below:

Website Navigation


Reactivity API: Advanced | Vue.js

Reactivity API: Advanced shallowRef()

Shallow version of ref().

triggerRef()

Force trigger effects that depend on a shallow ref. This is typically used after making deep mutations to the inner value of a shallow ref.

customRef()

Creates a customized ref with explicit control over its dependency tracking and updates triggering.

shallowReactive()

Shallow version of reactive().

shallowReadonly()

Shallow version of readonly().

toRaw()

Returns the raw, original object of a Vue-created proxy.

markRaw()

Marks an object so that it will never be converted to a proxy. Returns the object itself.

effectScope()

Creates an effect scope object which can capture the reactive effects (i.e. computed and watchers) created within it so that these effects can be disposed together. For detailed use cases of this API, please consult its corresponding RFC.

getCurrentScope()

Returns the current active effect scope if there is one.

onScopeDispose()

Registers a dispose callback on the current active effect scope. The callback will be invoked when the associated effect scope is stopped.

This method can be used as a non-component-coupled replacement of onUnmounted in reusable composition functions, since each Vue component's setup() function is also invoked in an effect scope.

A warning will be thrown if this function is called without an active effect scope. In 3.5+, this warning can be suppressed by passing true as the second argument.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4