kazupon/vue-i18n

Memory Leak SSR

開放

#589 建立於 2019年5月27日

 (15 則留言) (1 個反應) (0 位負責人)JavaScript (837 個分叉)batch import
Status: PR WelcomeType: Bughelp wanted

倉庫指標

星標
 (7,222 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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?

貢獻者指南