Skip to content

Server-side rendering issue #116

Closed
Closed
@yodiman

Description

@yodiman

There is an error when SSR is using:
Warning: Prop id did not match. Server: "rct-4cYwqnm-userActions" Client: "rct-wpKhqdZ-userActions"
The root of the issue is in generating random id for tree
this.id = rct-${nanoid(7)};
In this case id will be different on server and client.

I suggest to add a new prop treeId with default value rct-${nanoid(7)}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions