fn
getLifeCycleTarger
v0.0.1Function 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
| Parameter | Type | Description |
|---|---|---|
target? | ComponentInternalInstance | undefined | The target instance of the lifecycle hook |
Returns
ComponentInternalInstance | nullInstance of the lifecycle hook or null