Guides on creating a virtualized, infinite scroll data table with TanStack Query and Table in React.
I am going to build a React + TypeScript component that uses TanStack Query and TanStack Table to display a data table with infinite scroll and virtualization. Explain how to... 1. Set up useInfiniteQuery for paged data fetching and caching. 2. Wire that to a virtualized table using useReactTable. 3. Manage scroll events to load more data smoothly. 4. Apply performance optimizations such as memoizing cell renderers and limiting re-renders. Write steps in clear sentences that balance readability and detail.