kazupon/vue-i18n

Memory Leak SSR

Open

#589 geöffnet am 27. Mai 2019

Auf GitHub ansehen
 (15 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (7.181 Stars) (886 Forks)batch import
Status: PR WelcomeType: Bughelp wanted

Beschreibung

vue & vue-i18n version

vue-i18n v8.11.2

Reproduction Link

any SSR usage

Question

In line https://github.com/kazupon/vue-i18n/blob/master/src/mixin.js#L58 a new object is created server-side because we are in beforeCreate. This is necessary to get the languages rendered server-side as far as I can see but at the same time it generates a memory leak because the destructor is not called by SSR. Do you have any ideas how to overcome this issue?

Contributor Guide