R
fn

getLifeCycleTarger

v0.0.1

Function to get the target instance of the lifecycle hook

Examples

ts
const target = getLifeCycleTarger();
ts
const target = getLifeCycleTarger(instance);

Signature

ts
export function getLifeCycleTarger(target?: ComponentInternalInstance){ ... }

Parameters

ParameterTypeDescription
target?ComponentInternalInstance | undefinedThe target instance of the lifecycle hook

Returns

ComponentInternalInstance | nullInstance of the lifecycle hook or null