kazupon/vue-i18n

Memory Leak SSR

Open

#589 opened on May 27, 2019

View on GitHub
 (15 comments) (1 reaction) (0 assignees)JavaScript (7,181 stars) (886 forks)batch import
Status: PR WelcomeType: Bughelp wanted

Description

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