-
Notifications
You must be signed in to change notification settings - Fork 51
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
Using with Nuxt creates infinite loop #82
Comments
I have no idea about this because I don't use Nuxt. If you have solved this issue, please add a comment to help more people with same issue :) |
Same here but I use gridsome. When I check, it actually happen because I use v-touch like v-on, e.g.
When i see this documentation, I change the code to something like this
and it works. Hope it helps. |
I had the same problem. After renaming the plugin from I assume one must not name a Nuxt plugin the same as the npm module name. This is my config// ~/plugins/vue-touch.js
import Vue from "vue"
import Vue2TouchEvents from "vue2-touch-events"
Vue.use(Vue2TouchEvents) // ~/nuxt.config.js
export default {
// ...,
plugins: ["~/plugins/vue-touch"],
// ...,
} |
This worked for me! thank you @niwasmala |
Hello,
I've used this plugin with success in the past in a Vue app. This time I am trying to integrate it in a larger Nuxt JS app, but unfortunately, a big bug appeared. Basically, I changed all the click events with v-touch (the default for the tap event on mobile with support for click events on desktop), but by doing this, an infinite loop is created when I open up a page by the fact that all the clickable element are actually clicked automatically.
I added the plugin by following @ #32
If you have any recommendations would be very welcomed because we need to deploy this app soon.
The text was updated successfully, but these errors were encountered: