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 will have hydration issues #93

Open
davesnx opened this issue Nov 2, 2023 · 1 comment
Open

useId will have hydration issues #93

davesnx opened this issue Nov 2, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@davesnx
Copy link
Member

davesnx commented Nov 2, 2023

Implemented as an auto-incremental id starting at 0, but React implements this differently.

useId from their documentation: https://react.dev/reference/react/useId

There's some logic on tagging those ids as rendered from the server and also knowing how many ids are called in a tree/componnent locally.

Screenshot 2023-11-02 at 18 02 57
Taken from https://jser.dev/2023-04-25-how-does-useid-work

@davesnx davesnx added the bug Something isn't working label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant