amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Next Story div renders multiple times when using <amp-next-page> for infinite scroll

Open AKSHAT2802 opened this issue 2 years ago • 0 comments

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

AKSHAT2802 avatar Nov 08 '23 05:11 AKSHAT2802