Paginated queries, optimistic updates and data structure - TanStack