Setting the file. One moment.
Subchapter 18.51
references/tryOnBeforeUnmount.mdMarkdown524 BView on GitHub
Safe onBeforeUnmount. Call onBeforeUnmount() if it’s inside a component lifecycle, if not, do nothing
import { tryOnBeforeUnmount } from '@vueuse/core'
tryOnBeforeUnmount(() => {
})/**
* Call onBeforeUnmount() if it's inside a component lifecycle, if not, do nothing
*
* @param fn
* @param target
*/
export declare function tryOnBeforeUnmount(
fn: Fn,
target?: ComponentInternalInstance | null,
): void