v3-infinite-loading@1.2.2
I was caught on an issue: When the page was mounted, not every time the @infinite
event was called.
After I added console.log
to the IntersectionObserver callback, I found that the entries
param was an array with 2 items.
But the code shows that only first item of entries
is used. Why ?
|
const entry = entries[0]; |
Shouldn't this code be like:
const entry = entries.at(-1);