Add note about useId being allowed in non-async Server Components (#7715)

This commit is contained in:
Yadiel Vélez
2025-04-07 06:35:20 -04:00
committed by GitHub
parent 5138e60522
commit 6ead1fae68

View File

@@ -46,6 +46,8 @@ function PasswordField() {
* `useId` **should not be used to generate keys** in a list. [Keys should be generated from your data.](/learn/rendering-lists#where-to-get-your-key)
* `useId` currently cannot be used in [async Server Components](/reference/rsc/server-components#async-components-with-server-components).
---
## Usage {/*usage*/}