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.
This commit is contained in:
@@ -79,11 +79,11 @@ export interface ComponentInternalOptions {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
__props?: Record<number, NormalizedPropsOptions>
|
||||
__props?: NormalizedPropsOptions
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
__emits?: Record<number, ObjectEmitsOptions | null>
|
||||
__emits?: ObjectEmitsOptions | null
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user