()
| 8 | |
| 9 | /** Get unique id for accessibility usage */ |
| 10 | export function getUUID(): number | string { |
| 11 | let retId: string | number; |
| 12 | |
| 13 | // Test never reach |
| 14 | /* istanbul ignore if */ |
| 15 | if (isBrowserClient) { |
| 16 | retId = uuid; |
| 17 | uuid += 1; |
| 18 | } else { |
| 19 | retId = 'TEST_OR_SSR'; |
| 20 | } |
| 21 | |
| 22 | return retId; |
| 23 | } |
| 24 | |
| 25 | export default function useId(id?: string) { |
| 26 | // Inner id for accessibility usage. Only work in client side |
no outgoing calls
no test coverage detected
searching dependent graphs…