tryOnBeforeMount
tryOnBeforeMount
安全な onBeforeMount。コンポーネントのライフサイクル内であれば onBeforeMount() を呼び出し、そうでなければ単に関数を呼び出します。
使用法
import { tryOnBeforeMount } from '@vueuse/core'
tryOnBeforeMount(() => {
})
© 2019–PRESENT Anthony Fu https://github.com/antfu
※このページは Nuxt.js 公式ドキュメントの翻訳ページです。
公式ドキュメントの該当ページはこちら:
#