'Printing multiple pages not working in React-to-Print

we are loading 100 records in the grid initially, after that when we scroll down , loading another set of data. But when we try to print the page its loading just 100 records in the print preview screen, we are using react-to-print, functional component.

const handlePrint = useReactToPrint({
    content: () => componentRef.current,
  });

we want load all the data available in the List, please help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source