score:1

function fetchMoreListItems() {
  setTimeout(() => {
    if (!props.resource) return;
    props.resource
      .follow('activities-collection').follow('next').followAll('item')
      .then(resources => {
         setItems(items.concat(resources));
      })
      .catch(err => console.error('Error fetching resources: ' + err));
    setIsFetching(false);
  }, 1000);
}

Related Query

More Query from same tag