From: daiwei Date: Wed, 11 Dec 2024 13:11:49 +0000 (+0800) Subject: wip: save X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b58aaec513ad9ad224ab08934b1e496bd3392f05;p=thirdparty%2Fvuejs%2Fcore.git wip: save --- diff --git a/packages/compiler-vapor/src/generators/prop.ts b/packages/compiler-vapor/src/generators/prop.ts index 3835a74a02..bce64af402 100644 --- a/packages/compiler-vapor/src/generators/prop.ts +++ b/packages/compiler-vapor/src/generators/prop.ts @@ -251,7 +251,9 @@ function processPropValues( if (shouldCacheRenderEffectDeps()) { const { declareNames, operations, identifiers } = processingRenderEffect! // if render effect rely on any reactive object, it should not cache - const canCache = identifiers.every(name => canCacheValue(context, name)) + const canCache = identifiers.every(name => + isBindingCacheable(context, name), + ) processValues(context, values, canCache) // if the operation needs to cache the return value and has multiple declareNames, // combine them into a single name as the return value name. @@ -329,7 +331,7 @@ function processValue( } } -function canCacheValue(context: CodegenContext, name: string): boolean { +function isBindingCacheable(context: CodegenContext, name: string): boolean { const { options: { bindingMetadata }, } = context