Fetching 2nd page of records and ignoring the first page

I’m trying out AirTable.js to access my records.

I am able to fetch my records from airtable if there are under 100, which is well-stated in their documentation. But if there are > 100 records the result is that the records after the first 100 survive, but the first 100 are lost.

The documentation explains that there is an adjustment to the code needed to capture 101+ records, but I can’t quite figure this one out.

const getRecords = () => {
    base(tableName)
      .select({
        view: 'Grid view',
        //sort: [{field: 'due_date', direction: "asc"}]
      })
      .eachPage(
        function page(fetchedRecords, fetchNextPage) {
          // This function (`page`) will get called for each page of records.
          setTickets([...tickets, ...fetchedRecords])
          fetchNextPage()
        },
        function done(err) {
          if (err) {
            console.error(err)
          }
        },
        // console.log('tasks: ',tasks)
      )
  }

  useEffect(() => {
    getRecords()
  }, [])