Skip to content

Commit 98a15f5

Browse files
authored
fix(container-utilities): coerce useId return value to string (#701)
1 parent ef03b49 commit 98a15f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utilities/src/utils/useId.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ let idCounter = 0;
1616
*
1717
* @returns A generated ID that can be passed to accessibility attributes
1818
*/
19-
export const useId = (id?: any) => useReachId(id) || `id:${idCounter++}`;
19+
export const useId = (id?: any) => `${useReachId(id)}` || `id:${idCounter++}`;

0 commit comments

Comments
 (0)