Skip to content

Server-side rendering issue #116

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

Closed
yodiman opened this issue Oct 5, 2018 · 0 comments
Closed

Server-side rendering issue #116

yodiman opened this issue Oct 5, 2018 · 0 comments
Milestone

Comments

@yodiman
Copy link

yodiman commented Oct 5, 2018

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)}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants