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

Docs improvement: State returned from getInitialState(input) should be based on the input #104

Open
maberer opened this issue Oct 27, 2015 · 0 comments

Comments

@maberer
Copy link
Contributor

maberer commented Oct 27, 2015

We should document, that "State returned from getInitialState(input) should be based on the input". Otherwise, hard coded objects do not only cause a re-render (in case of an empty array), they even get reseted to their initial state (when they are changed in the meantime).

As a consequence, there is nothing like "truly private properties", that keep their state when the component gets re-rendered because of a changed input property...

The issue is discussed here: #100

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

No branches or pull requests

1 participant