Open Sirros opened 11 months ago
What I'm experiencing is that it doesn't appear to be placeholder on the first request. "@egjs/vue3-infinitegrid": "^4.11.0"
@daybrush
Same for me. "@egjs/vue-infinitegrid": "^4.11.1"
It seems that there is an issue with the initial cursor position in the GroupManager when there are no items. When I call appendPlaceholders
, in the following lines this.groups
contains a group with placeholders, but both cursors have the value -1, groups
contains an empty array, and getVisibleGroups
returns an empty array.
https://github.com/naver/egjs-infinitegrid/blob/add5361584d41ee117a504996e299fde2a41e1ad/packages/infinitegrid/src/GroupManager.ts#L170-L172
Description
Since it takes some time to load the image, in order to have a better experience, I tried adding placeholder to the component, but it didn't work. I am referring to the official example. https://naver.github.io/egjs-infinitegrid/storybook/?path=/story/examples-data-loading--placeholder-template
Steps to check or reproduce