Skip to content

Commit

Permalink
docs: alert for memeory leak inject to plugins (#505)
Browse files Browse the repository at this point in the history
* docs: alert for memeory leak inject to plugins

* Update plugins.md

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
  • Loading branch information
debs-obrien and Atinux committed Aug 18, 2020
1 parent e51adc8 commit 57bbf67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/en/guides/directory-structure/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ export const actions = {
}
```

<base-alert>
Don't use `Vue.use()`, `Vue.component()`, and globally, don't plug anything in Vue **inside** this function, dedicated to Nuxt injection. It will cause memory leak on server-side.
</base-alert>

<app-modal>
<code-sandbox :src="csb_link_plugins_custom"></code-sandbox>
</app-modal>
Expand Down

0 comments on commit 57bbf67

Please sign in to comment.