Next.js Discord

Discord Forum

List items

Unanswered
Pelagic Cormorant posted this in #help-forum
Open in Discord
Pelagic CormorantOP
I want when I click on the link to the page, the items of that page only show 12 items and when I scroll it can show more

But when I go to another page and I go back to the old page it shows more than 12 items. This makes the page quite slow.

So I need a solution. Help me

4 Replies

Southeastern blueberry bee
can you share the url of the page where you have more than 12 item pls ?
Southeastern blueberry bee
There is no query params ? How do you handle lazy loading ?
@Southeastern blueberry bee There is no query params ? How do you handle lazy loading ?
Pelagic CormorantOP
https://opensea.io/collection/persona

Looks like we're misunderstanding the issue, here's a website and I want to do the same

When you are on the items page, some elements are displayed and you scroll it will continue to display. Then you switch to another tab and come back, only a small amount of elements are displayed (it has been unmounted).