diff --git a/packages/runtime-core/__tests__/rendererTemplateRef.spec.ts b/packages/runtime-core/__tests__/rendererTemplateRef.spec.ts index 9196d9cf2d3..ae6c605dd07 100644 --- a/packages/runtime-core/__tests__/rendererTemplateRef.spec.ts +++ b/packages/runtime-core/__tests__/rendererTemplateRef.spec.ts @@ -573,8 +573,8 @@ describe('api: template refs', () => { render(h(App), root) expect( - 'In production mode reactive ref array will not be filled. ' + - 'Use ref() instead.', + 'In production mode ref array will not be filled. ' + + 'Use ref() instead. Ref name: reactiveRef', ).toHaveBeenWarned() }) }) diff --git a/packages/runtime-core/src/rendererTemplateRef.ts b/packages/runtime-core/src/rendererTemplateRef.ts index 5e474877dcd..7ad9a4cde73 100644 --- a/packages/runtime-core/src/rendererTemplateRef.ts +++ b/packages/runtime-core/src/rendererTemplateRef.ts @@ -113,8 +113,8 @@ export function setRef( if (wrongRefType) { warn( 'In production mode ref array will not be filled. ' + - 'Use ref() instead. Ref name: ', - ref, + 'Use ref() instead. Ref name: ' + + ref, ) } existing.push(refValue)