Skip to content

Commit 6ead1fa

Browse files
Add note about useId being allowed in non-async Server Components (#7715)
1 parent 5138e60 commit 6ead1fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/reference/react/useId.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ function PasswordField() {
4646
4747
* `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)
4848
49+
* `useId` currently cannot be used in [async Server Components](/reference/rsc/server-components#async-components-with-server-components).
50+
4951
---
5052
5153
## Usage {/*usage*/}

0 commit comments

Comments
 (0)