Next.js Discord

Discord Forum

Preferred way to achieve infinite scroll with nextjs?

Answered
Standard Chinchilla posted this in #help-forum
Open in Discord
Standard ChinchillaOP
Anyone know what is the preferred way to do Infinite scroll with nextjs.
Answered by B33fb0n3
create a client component, add a button with view observer. Fetch when button is in screen. Button is just an example object. It can be everything else as well. Even a invisible div
View full answer

3 Replies

@Standard Chinchilla Anyone know what is the preferred way to do Infinite scroll with nextjs.
create a client component, add a button with view observer. Fetch when button is in screen. Button is just an example object. It can be everything else as well. Even a invisible div
Answer
@Standard Chinchilla solved?