You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am nost sure if this is an issue of default behavior of vue/nuxt
I am using vue-typed-js on one of the pages in my nuxt website, and even when I navigate away from the page where I used this component, I see a lot of events continuously emitted by this package. Is that suppose to happen?
These events were being emitted even when I only opened the home page.
My setup is as follows:
I added a file calledplugins/vue-typed-js.js
import Vue from 'vue';
import VueTypedJs from 'vue-typed-js';
Vue.use(VueTypedJs);
and in nuxt.config.js file I have
plugins: [
{src: '@/plugins/vue-typed-js.js'},
]
I have this component being used in a page deep inside the route http://localhost:3000/projects/testProject and I can see the events even when I open the index.html at the root http://localhost:3000/ after I have opened the project page.
Is there any special way to destroy the component after navigating away?
The text was updated successfully, but these errors were encountered:
pratyushtewari
changed the title
Events are emitted continuously without instantiation of the vue-typed-js component
Events are emitted continuously after instantiation of the vue-typed-js component and navigating away (possible leak scenario)
Jan 22, 2020
Events are firing as if a <vue-typed-js> component exists, when really I'm destroying the element by passing a falsey value into the v-if. I've also tried wrapping the <vue-typed-js> component in a <div>, but I still see the same events fire.
I love this library & use typed.js quite a bit, but it's causing a lot of unnecessary events :P
I am nost sure if this is an issue of default behavior of vue/nuxt
I am using
vue-typed-js
on one of the pages in my nuxt website, and even when I navigate away from the page where I used this component, I see a lot of events continuously emitted by this package. Is that suppose to happen?These events were being emitted even when I only opened the home page.
My setup is as follows:
I added a file called
plugins/vue-typed-js.js
and in
nuxt.config.js
file I haveI have this component being used in a page deep inside the route
http://localhost:3000/projects/testProject
and I can see the events even when I open the index.html at the roothttp://localhost:3000/
after I have opened the project page.Is there any special way to destroy the component after navigating away?
The text was updated successfully, but these errors were encountered: