DEV Community

[Comment from a deleted post]
Collapse
 
bhupathi_kumar profile image
mohan kumar

But we're calling the same end point again and again for the data, there will be a performance issue in here, correct?

Collapse
 
daviddalbusco profile image
David Dal Busco

Kind of, thank you for asking. In the example I used the free Dogs Api which does not have a pagination option. In a real use case you most probably are going to use an infinite scroller with a paginated API and once no more data are/can be fetched, are then going to disable the scroller to stop fetching new data.

Does that answer your question aka did I get it correctly?