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

    Function tryOnScopeDispose

    • Attempts to register a disposal callback on the current active effect scope.

      Parameters

      • callback: () => void

        The callback to invoke when the effect scope is disposed.

      Returns boolean

      true if the callback was registered, false otherwise.

      tryOnScopeDispose(() => {
      console.log('Effect scope disposed')
      })