egjs-infinitegrid icon indicating copy to clipboard operation
egjs-infinitegrid copied to clipboard

MasonryInfiniteGrid onRequestAppend endlessly called

Open feiyl opened this issue 3 years ago • 1 comments

Description

Excuse me, I use MasonryInfiniteGrid for building my infinte card view app.I don't know why the onRequestAppend function is constantly called, endlessly called unless I set threshold to 0. Do me a favor to explain why is it, maybe is there any monitor triggered?

Steps to check or reproduce

feiyl avatar Jul 06 '22 12:07 feiyl

@feiyl

Perhaps it is correct that requestAppend is called every time you scroll when the threshold is reached.

If not this case, is there such a case?

The case of blocking requestAppend is as follows.

  1. Adding data https://naver.github.io/egjs-infinitegrid/Guides#use-wait--ready
  2. Last data
onRequestAppend={() => {
    if (this.lastItems) {
       return;
    }
}}

daybrush avatar Jul 12 '22 01:07 daybrush