Static GitHub Issues

[1946] Nuxt plugin is called 16 times ? (I wanna do X stuff on each page load Client Side)

prev: Setting baseUrl
next: Using Facebook's javascript sdk with Nuxtjs

Hello,

I was developing my first plugin that is noty wrapper.

But i noticed that my mixing are called 16 times ?

So i created a test plugin.

import Vue from 'vue'

const Test = {
  install: (Vue, options) => {
    Vue.mixin({
      mounted () {
        console.log('called');
      }
    })
  }
}

Vue.use(Test)

I got called 16 times + 1into my console. (chrome)

what could cause this ?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1737">#c1737</a>)</em></sub></div>