Skip to main content

Render more than 100 data points (using axios in react.js)

  • July 23, 2019
  • 1 reply
  • 0 views

Hi there,
Would love to get more than 100 data points in the state of my app so that I can keep it on the state of my app.
How should I go about doing that?

This is my take for the first 100 data points and it works as intended.

How should I get the other 100+ using the offset?
Thank you for the help,

1 reply

  • Author
  • New Participant
  • 4 replies
  • July 26, 2019

I know that this can be done using airtable.js.

base(‘collab DB’).select({ view: ‘collab 5.0 korea’ })
.eachPage(
(records, fetchNextPage) => {
//all this is to solve for a problem when I have more than 100 items
allStartups = [
records,
…allStartups]
.reduce((acc , cv) => {
return acc.concat(cv)
})
fetchNextPage();

I have done it and it works. However I would prefer to do it using axios. Again, any help here?


Reply