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

Fix/style identity #4

Merged
merged 5 commits into from
Jun 15, 2018
Merged

Fix/style identity #4

merged 5 commits into from
Jun 15, 2018

Conversation

lucastobrazil
Copy link
Contributor

@lucastobrazil lucastobrazil commented Feb 12, 2018

Motivation

Currently, the component will re-render every time new props are passed. however we only want it to rerender if style or animationDuration props change. It's happening because of how the style object is computed.

Originally reported: #3

Solution

Check if the specific props change, when recompute the style via this.style

@jotaen to help

@lucastobrazil
Copy link
Contributor Author

@jotaen maybe we should try resolve this some time soon eh?

Copy link

@jotaen jotaen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing change! 🎉

@lucastobrazil lucastobrazil merged commit ccbf349 into master Jun 15, 2018
@lucastobrazil lucastobrazil deleted the fix/style-identity branch June 15, 2018 12:25
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.

2 participants