amphtml
amphtml copied to clipboard
Next Story div renders multiple times when using <amp-next-page> for infinite scroll
Description
For implementing infinite scroll for posts on our site, I am currently using amp-next-page.
However, I observed that when the maximum limit is reached and still user scrolls up and down then the next story div renders without any data within them
Solutions Tried:
– Checking for empty JSON response.
– max-pages attribute set to 10.
– deep-parsing attribute false.
I am still not able to figure out the cause of the error.
Reproduction Steps
Here is the video of the problem.
https://github.com/ampproject/amphtml/assets/87222220/8dfb07ae-4262-4d47-8af6-e49c422486f7
Relevant Logs
No response
Browser(s) Affected
No response
OS(s) Affected
No response
Device(s) Affected
No response
AMP Version Affected
No response