Skip to content

Remove styles from props after render #103

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

Merged
merged 1 commit into from
Mar 13, 2016
Merged

Remove styles from props after render #103

merged 1 commit into from
Mar 13, 2016

Conversation

liady
Copy link
Contributor

@liady liady commented Mar 7, 2016

Removing styles from this.props after render, in order not to hurt pure rendering logic.

If this.props.styles will remain, then shallow comparing props to newly received props will always return false.
(since even if nothing changed, the current props will have styles: { ... } and the new props will have styles: undefined)

resolves #102

Removing `styles` from `this.props` after render, in order not to hurt pure rendering logic.

If `this.props.styles` will remain, then shallow comparing props to newly received props will always return false.
(since even if nothing changed, the current props will have `styles: { ... }` and the new props will have `styles: undefined`;
gajus added a commit that referenced this pull request Mar 13, 2016
Remove styles from props after render
@gajus gajus merged commit 4686432 into gajus:master Mar 13, 2016
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

Successfully merging this pull request may close these issues.

3 participants