Open
Description
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?