]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-sfc): treat the return value of `useTemplateRef` as a definite ref ...
author山吹色御守 <85992002+KazariEX@users.noreply.github.com>
Mon, 14 Apr 2025 09:08:06 +0000 (17:08 +0800)
committerGitHub <noreply@github.com>
Mon, 14 Apr 2025 09:08:06 +0000 (17:08 +0800)
packages/compiler-sfc/src/compileScript.ts

index 962b7bc7936bae4d075204f698f688fdd2416246..36bb2cfd2dff29762aa5325715b00110c937f9e7 100644 (file)
@@ -1104,6 +1104,7 @@ function walkDeclaration(
                 m === userImportAliases['shallowRef'] ||
                 m === userImportAliases['customRef'] ||
                 m === userImportAliases['toRef'] ||
+                m === userImportAliases['useTemplateRef'] ||
                 m === DEFINE_MODEL,
             )
           ) {