Skip to content

utils/keepAliveTry

Functions

tryOnActivated()

tryOnActivated(fn, target?): void

If there is an active component, set up an onActivated hook.

Parameters

fn

Function

The function to call.

target?

any

The target to call the function on.

Returns

void


tryOnDeactivated()

tryOnDeactivated(fn, target?): void

If there is an active component, set up an onDeactivated hook.

Parameters

fn

Function

The function to call.

target?

any

The target to call the function on.

Returns

void