docs icon indicating copy to clipboard operation
docs copied to clipboard

`useId()` return type

Open cernymatej opened this issue 1 year ago • 0 comments

The return type of useId() in the docs is only string, however, the actual return type according to runtime-core.d.ts is string | undefined. Is this intentional or is it not correct in the docs? I suppose that undefined is there in case the function is called outside a component, isn't it?

cernymatej avatar Sep 05 '24 12:09 cernymatej