-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@click not working inside LazyHydrate #127
Comments
Hi @gutisalex, I faced with the same issue The reason of issue was that I used Try to use |
I had the same problem - indeed 'click' made it hydrate, but didn't call the
So if you have the same problem with <LazyHydrate :on-interaction=["click", "focus", "touchstart", "mousedown"]> or import { hydrateOnInteraction } from 'vue-lazy-hydration';
export default {
components: {
ComponentName: hydrateOnInteraction(() => import(
'~/components/path/ComponentName.vue'
), {event: ['click', 'focus', 'touchstart', 'mousedown']}),
},
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a reason why @click listener not working when they are sitting in a component wrapped with LazyHydrate? I have a Navigation which has Navigationitems fetched from an API. First time routing to the page everything works fine. After pagerefresh it doesnt... any idea?
The text was updated successfully, but these errors were encountered: