Sage-Bionetworks / sage-monorepo

Where OpenChallenges, Schematic, and other Sage open source apps are built
https://sage-bionetworks.github.io/sage-monorepo/
Apache License 2.0
23 stars 12 forks source link

[Bug] The lazy loading feature recently added to OC flickers sometimes #2684

Open tschaffter opened 4 months ago

tschaffter commented 4 months ago

Is there an existing issue for this?

What product(s) are you seeing the problem on?

OpenChallenges

Current behavior

Video: I scrolled 3 times. A flickering appears for scroll 1 and 3.

Recording 2024-05-16 at 14 54 06

Also, I can see by the position of the scroll bar that there are more items in the list. But when I scroll a little, like 2-3 items, the loading placeholder appears briefly even though I don't notice a jump in the scroll bar, which would have indicated that more item had been loaded.

I scrolled quite a bit now and I have plenty of items in the list. I scrolled up again to see the first items. I scroll a bit down: the placeholder is briefly displayed even though I'm still near the top of the list and there is clearly no need to load more items.

Expected behavior

There should be no flickering and the placeholder should only be displayed when data are actually loaded.

Anything else?

No response

Commit ID

No response

Are you developing inside the dev container?

Code of Conduct