infinite-scroll icon indicating copy to clipboard operation
infinite-scroll copied to clipboard

How to push different history URL while keeping infinite-scroll auto incremenet/decrement?

Open SHxKM opened this issue 3 years ago • 1 comments

I have a page albums, which calls an internal url api-albums using VueJS (axios). This is also the URL that infinite-scroll is instructed to use.

api-albums returns a JSON response, which I then parse.

My problem is that infinite-scroll is currently replacing my URL with:

https://mywebsite.com/api-albums?page=2

Instead of the desired:

https://mywebsite.com/albums?page=1

It is also not adjusting the state back when I scroll back up.

How can I instruct infinite-scroll to pull data from api-albums but push history with albums?

SHxKM avatar Aug 26 '21 17:08 SHxKM

Is this still a problem? I can try to help out.

abant07 avatar Jan 09 '24 23:01 abant07