@yesstudio/nuxt-composables
    Preparing search index...

    Function tryOnMounted

    • Attempts to register a mounted callback on the current component instance.

      Parameters

      • callback: () => void

        The callback to invoke when the component instance is mounted.

      Returns boolean

      true if the callback was registered, false otherwise.

      tryOnMounted(() => {
      console.log('Component mounted')
      })