]> git.ipfire.org Git - thirdparty/vuejs/core.git/commit
fix(runtime-core): fix SSR memoery leak due to props normalization cache
authorEvan You <yyx990803@gmail.com>
Tue, 6 Oct 2020 19:31:29 +0000 (15:31 -0400)
committerEvan You <yyx990803@gmail.com>
Tue, 6 Oct 2020 19:31:29 +0000 (15:31 -0400)
commita66e53a24f445b688eef6812ecb872dc53cf2702
tree296707f78c02a941c5a50a19b9a4bf953d96b10b
parentcf2c9f6faa95add4c23b20c4b8a6e477d05ff0ed
fix(runtime-core): fix SSR memoery leak due to props normalization cache

fix #2225

The previous props/emits normlaization was caching normalized result per
app instance, but during SSR there is a new app instance created for
every request.

The fix now de-opts props/emits normlaization caching when there are
props/emits declared in global mixins - which is a very rare use case.
packages/runtime-core/src/apiCreateApp.ts
packages/runtime-core/src/component.ts
packages/runtime-core/src/componentEmits.ts
packages/runtime-core/src/componentProps.ts