Bug: useId generated the same ID on server-side for 2 different mounted components when Promise/Suspense is involved #29021
Labels
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version: 18.3.1
(Also tested on React 19 and seems like it is fixed)
Steps To Reproduce
useId
on both Parent and Child, and observes they have the same ID generatedSample code:
Generated HTML:
Link to code example: https://codesandbox.io/p/sandbox/react-server-duplicate-useid-nllf55
The current behavior
The ID generated on both mounted components are the same
The expected behavior
The ID generated on both mounted components should be different
The text was updated successfully, but these errors were encountered: