i wanted to write custom function to fetch api every time when user clicks on page number(basically to append it to the api), im asking this cause our api's are designed in such a way that api's will fetch the data based on page Number the user selects to avoid fetching thousands of data at the initial time.
any help is greatly appreciated.
thank you.