vue3-infinite-loading icon indicating copy to clipboard operation
vue3-infinite-loading copied to clipboard

infiniteHandler doesn't trigger initial loading on mobile portrait screens

Open Dagge11 opened this issue 1 year ago • 0 comments

The v3-infinite-loading works normally on a Desktop screen size and mobile landscape screen orientation. But on mobile portrait orientation, it doesn't initially load items (the array with downloaded items is empty). When I re-load the mobile screen it loads normally and the array is filled with items.

What can be the cause of this? I experimented with setTimeout() method in mounted() lifecycle hook, delaying execution 10-20ms by triggering re-load with changing identifier - it works then but sometimes it loads items twice so I have a double number of the same items in the array. This is obviously not an acceptable solution. I am otherwise satisfied with this module but this I believe should be solved somehow.

Thanks for your contribution! Dagg

Dagge11 avatar Jun 19 '24 08:06 Dagge11