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

Reuse cells in ComposedProvider #127

Open
Banck opened this issue Feb 2, 2019 · 1 comment
Open

Reuse cells in ComposedProvider #127

Banck opened this issue Feb 2, 2019 · 1 comment

Comments

@Banck
Copy link

Banck commented Feb 2, 2019

Hello!
I've noticed that cells in the same type of providers which are combined in ComposedProvider are not reusing.
So, for example, there is Provider with RowLayout and there are another n the same Providers and we combine them into ComposedProvider with FlowLayout:
image
So if we will scroll horizontally we will see, that cells will reuse in each provider separately. And if we scroll vertically new cells will be always generated again and again.

I tried to use one instance of viewSource in each provider, because as I understand, it is viewSource has reuseManager, but doesn't help for some reason.
@lkzhao Is there any way to cache cell by type and reuse them in CollectionView no matter what provider they were?

@elemanhillary-zz
Copy link

@Banck did you get a solution for this

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

No branches or pull requests

2 participants