Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Styled Components: Fix completion flicker #1147

Merged
merged 11 commits into from
Dec 18, 2017

Conversation

bryphe
Copy link
Member

@bryphe bryphe commented Dec 18, 2017

It seems there was an issue with the completion UI (and other tooltips) flickering when the values changed. Because the styled components were defined inline, React always saw them as a "new" component, and would remove the old element and add it back to the DOM. This was addressed by factoring out the component class to live outside the render method.

@bryphe bryphe merged commit 79bf5fd into master Dec 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant