Skip to content

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