Skip to content

useId will have hydration issues #93

@davesnx

Description

@davesnx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions