Skip to content

Adds conditional rendering #139

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
Apr 11, 2019
Merged

Adds conditional rendering #139

merged 1 commit into from
Apr 11, 2019

Conversation

jcleigh
Copy link
Contributor

@jcleigh jcleigh commented Jan 3, 2019

Implements modified version of the workaround posted in this comment.

This should cause the component to only flash when a new element is added to the data. Modifying existing data should not trigger the entire component to re-render, which was causing the screen "flash" that was referenced in several issues.

@gitim gitim merged commit f49f452 into gitim:master Apr 11, 2019
@andrewbeckman
Copy link

Hey, just a heads up. When this got merged in, deleting items from the list was broken as rendering happens now only if the length of the data grows. I put in this PR to fix it: #149.

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