We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
1 parent 5e88985 commit a177092Copy full SHA for a177092
packages/runtime-core/src/helpers/useId.ts
@@ -4,7 +4,7 @@ import {
4
} from '../component'
5
import { warn } from '../warning'
6
7
-export function useId(): string | undefined {
+export function useId(): string {
8
const i = getCurrentInstance()
9
if (i) {
10
return (i.appContext.config.idPrefix || 'v') + '-' + i.ids[0] + i.ids[1]++
@@ -14,6 +14,7 @@ export function useId(): string | undefined {
14
`instance to be associated with.`,
15
)
16
}
17
+ return ''
18
19
20
/**
0 commit comments