Skip to content

Commit 8ae1122

Browse files
authored
fix(compiler-sfc): treat the return value of useTemplateRef as a definite ref (#13197)
1 parent 32bc647 commit 8ae1122

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,7 @@ function walkDeclaration(
11041104
m === userImportAliases['shallowRef'] ||
11051105
m === userImportAliases['customRef'] ||
11061106
m === userImportAliases['toRef'] ||
1107+
m === userImportAliases['useTemplateRef'] ||
11071108
m === DEFINE_MODEL,
11081109
)
11091110
) {

0 commit comments

Comments
 (0)