useElementVisibility in custom directive always returns false
I'm building a custom directive with useElementVisibility but it always returns false for every element regardless if it is in the viewport or not. It kind of worked with
Has anyone tried this and know how to work with useElementVisibility in a custom directive?
@vueuse/core and @vueuse/nuxt in version 9 but after upgrading to 10 it stopped working completely. The problem in version 9 was that it return correct state on page load but after route change it always returned true.Has anyone tried this and know how to work with useElementVisibility in a custom directive?