I encountered a pretty weird bug using collection-repeat and the view cache. I am using v1.0.0-beta.14. This is what it looks like:
- I have a bunch of different views. One of them is a collection-repeat with a couple thousand items, the other is a view that has a button that opens up a modal
- If I start the app, and directly open the view to popup the modal, it pops up fast and clean.
- If I start the app, open up the collection-repeat view, it pops up fast, but if I then navigate to the other view and popup the modal, it takes a couple of seconds to open up (This is true both on my iPhone and the Simulator)
- When I debugged it, it seems like the opening up the modal is trying to render every item of the collection-repeat in the collection-repeat in the other, now cached, collection! Each item has a different picture, and I can see it trying to fetch thousands of images, which is chocking the performance.
After spending a bit of time in the debugger, it seems like the modal is emitting a ‘resize’ event, which is somehow being processed by the collection-repeater in the cached view, and causes the rerender of every item. When I mark the view with the collection-repeat to not be cached, the issue disappears.
Anybody else seeing issues with cached views, modals and large collection-repeats?