You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
The return type of
useId()
in the docs is onlystring
, however, the actual return type according toruntime-core.d.ts
isstring | 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?The text was updated successfully, but these errors were encountered: