-
Notifications
You must be signed in to change notification settings - Fork 585
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
How to create a component that contains a collection view ? #806
Comments
That should work as expected. What do you mean by "get into trouble"? |
I initialize the dataSource with one section and insert multiple items. When I scroll the collection view, it works correctly. Then I scroll up and down few times, the cells which contain a collection view show content in the wrong order. When the cell will appear, I check the model that is correct. But when the cell did appear, it shows different content randomly. I think maybe there is something wrong with reusing. I worked on it for a few days but cannot find out the solution. Could you show me how to create a component that contains a collection view ?
Thank you for your help |
Just glancing at it, things look fine. If you think there's a bug with the core framework can you show it with a breaking unit test? Thanks! |
This seems likely an issue inside your collection view code. cc @gkassabli @lucasr we get requests to have an open-source collection view example every once in awhile. Any interest in providing an example? |
I opened #810 to track providing an example. Closing this issue since the specific issue here with the code needs more information to be actionable. If you get a failing unit test, feel free to open a new issue! |
Thank you for your help. I'm looking forward for the example. |
I can use ComponentKit to create a collection view whose cells display simple views. However, I get into trouble when I create a component which contains a collection view. Is there any demo or tips to do that ? Thanks a lot .
The text was updated successfully, but these errors were encountered: