Skip to content
masterclass Buddy

TanStack · Method

virtualizer.getTotalSize

getTotalSize() returns the total pixel size of all virtualized items. The value can update as dynamically measured items are rendered.

Last updated

Syntax

getTotalSize: () => number

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Virtualizer
  • getVirtualItems
  • estimateSize
  • measureElement
  • scrollOffset
  • takeSnapshot

Source: Virtualizer | TanStack Virtual Docs. Checked 2026-11-03.