-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Virtual Scroll filtering causes a lot of flicker and performance degradation #12035
Comments
Thanks for using Ionic, we will look into this. |
+1 |
+1 |
fixed! 88b2e83 |
i am still getting this flickering issues |
@Muneem the PR has been merged to master but has not been released in version yet. Are you using master? |
i am using default virtual scrolling which comes with ionic. How to use master ? |
I would recommend that you wait the next release of ionic either 3.7.2 or 3.8 it should be coming soon. Working with the master is just asking for trouble if you don't know what you are doing. Point is that you still see flicker because you are not using the latest version of the code that has the fix in it, as it is not officially released yet. |
Yes this is what i was asking. How can i use that fixed version of code as i need this urgent and cant wait for next release...
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Michael Asimakopoulos <notifications@github.com>
Sent: Thursday, October 12, 2017 12:06:45 AM
To: ionic-team/ionic
Cc: Muneem; Mention
Subject: Re: [ionic-team/ionic] Virtual Scroll filtering causes a lot of flicker and performance degradation (#12035)
I would recommend that you wait the next release of ionic either 3.7.2 or 3.8 it should be coming soon. Working with the master is just asking for trouble if you don't know what you are doing. Point is that you still see flicker because you are not using the latest version of the code that has the fix in it, as it is not officially released yet.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#12035 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGRcTEvRh06-J4qOCsmPUELdAbku8M7aks5srR_VgaJpZM4N5NW3>.
|
|
To make that slightly more safe, you may want to do this:
That will get you the current RC. We are still working through some issues, which means the nightly could get updated at any time, which means that |
how do i switch from nightly build to stable ionic-angular |
I always just manually change my but... you can also just do this:
Of course, if you adjusted your Angular versions when you installed the nightly, you will have to back those down too. |
On a side note, another thing I will typically do if testing out something like a patch or a nightly build is just create a branch for it:
then I can just switch back and forth between that branch and whatever other branches I have other development going on it and all I have to do is remember to do Plus, it makes it easy to test with newer stuff that may have been merged into master in the meantime since all I have to do then is rebase my testing branch, etc. git rocks for this kind of stuff |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[X] 3.x
I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
Have a list of item rendered by a virtual scroll component. Filtering the list using a search box causes flickering and unnecessary component destruction.
Virtual scroll destroys rendered elements and recreates them when rendered list is altered resulting in a lot of flicker.
Also this is a trivial example, in real life components have initialization and cleanup logic that make this a whole lot worse in an actual application causing an overall performance degradation.
Expected behavior:
The list should be updated without items being destroyed and recreated with every search/filtering.
Steps to reproduce:
http://plnkr.co/edit/HkabOvdtRiOJ8kHmOVE2?p=preview
Search for a number... any number! Nah, kidding. Search for a number then search again, notice the flickering. In order to appreciate the magnitude of this has on an actual device, turn Chrome's CPU throttling to 10x and notice the behaviour.
Related code:
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: