onUnmounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.
...
useTippy | @ | vue-tippy.esm-browser.js:4152
-- | -- | --
| mounted | @ | vue-tippy.esm-browser.js:4459
...
Which happens from the call to
useTippy
done here https://github.com/KABBOUCHI/vue-tippy/blob/57dd5f2cc5fc6e14d51c2044f935013cd97ce188/src/directive/index.ts#L59 which internally doesonUnmounted
but we are not in the context of a component setup here when a directive is executed, which means thisonUnmounted
callback never gets called.https://github.com/KABBOUCHI/vue-tippy/blob/57dd5f2cc5fc6e14d51c2044f935013cd97ce188/src/composables/useTippy.ts#L268-L270
@KABBOUCHI