vue-lynx / customRef

Function: customRef()

function customRef<T, S>(factory): Ref<T, S>

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

Type Parameters

Type ParameterDefault type
T-
ST

Parameters

ParameterTypeDescription
factoryCustomRefFactory<T, S>The function that receives the track and trigger callbacks.

Returns

Ref<T, S>

See

https://vuejs.org/api/reactivity-advanced.html#customref

Defined in

node_modules/.pnpm/@vue+reactivity@3.6.0-beta.17/node_modules/@vue/reactivity/dist/reactivity.d.ts:621