Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

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

Topic Labels: API
1058 1
cancel
Showing results for 
Search instead for 
Did you mean: 

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.
Screenshot 2019-07-23 at 10.50.07 PM.png

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

1 Reply 1

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?