]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
wip: save
authordaiwei <daiwei521@126.com>
Wed, 11 Dec 2024 13:11:49 +0000 (21:11 +0800)
committerdaiwei <daiwei521@126.com>
Wed, 11 Dec 2024 13:11:49 +0000 (21:11 +0800)
packages/compiler-vapor/src/generators/prop.ts

index 3835a74a02f7888b3d1d92ace7fb0c9b74101307..bce64af4029d7a649f1a73f9ef28be7b37b4678b 100644 (file)
@@ -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