Implementing infinite scrolling with React. Writing E2E tests with Playwright
Briefly

By fetching posts with specified URL parameters, we can determine how many posts to load and receive a response header indicating the total posts available.
A method to fetch pages of data one by one, updating the page number with each fetch and adding new posts to an array until all posts are fetched, comparing with the total posts from the API header.
Read at Marcin Wanago Blog - JavaScript, both frontend and backend
[
add
]
[
|
|
]