Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useId() return type #2997

Open
CernyMatej opened this issue Sep 5, 2024 · 0 comments
Open

useId() return type #2997

CernyMatej opened this issue Sep 5, 2024 · 0 comments
Labels
content Issues / PRs related to docs content

Comments

@CernyMatej
Copy link

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?

@bencodezen bencodezen added the content Issues / PRs related to docs content label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Issues / PRs related to docs content
Projects
None yet
Development

No branches or pull requests

2 participants