vue-lynx / customRef

Function: customRef()

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

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

Type Parameters

Type Parameter
T

Parameters

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

Returns

Ref<T>

See

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

Defined in

node_modules/.pnpm/@vue+reactivity@3.5.30/node_modules/@vue/reactivity/dist/reactivity.d.ts:547