Hey everyone, I am going back and forth on the best ways to paginate in React. I am considering accessing the API data in a context provider, and then accessing that data with a limit and an offset and throwing that in the state (first 50 or so out of 500 results). Is it okay to have an API call for the next 50 every ‘Next’ or ‘Prev’ click, or would it be best to grab the first 50, throw that in state, and then for every subsequent click, I store the next fifty on top of what is already in the state so it is “cached”?
Thank you!