tryOnBeforeMount

tryOnBeforeMount

安全な onBeforeMount。コンポーネントのライフサイクル内であれば onBeforeMount() を呼び出し、そうでなければ単に関数を呼び出します。

使用法

import { tryOnBeforeMount } from '@vueuse/core'

tryOnBeforeMount(() => {

})