Glossário

Glossary - TanStack Virtual

anchorTo - An option that anchors reverse-feed behavior to the end so prepends and measured growth preserve the visible position. (Ch 006, Ch 017)

count - The total number of items the virtualizer may return. (Ch 007)

estimateSize - A function that supplies the initial or fallback size for an item along the active axis. (Ch 007, Ch 009, Ch 010)

followOnAppend - End-anchored behavior that follows appended items only when the user is already near the end. (Ch 006, Ch 017)

getScrollElement - A callback returning the element whose scroll offset controls the virtualizer. (Ch 003, Ch 007)

getVirtualItems - A method returning the currently rendered VirtualItem objects. (Ch 003, Ch 007)

lanes - The number of parallel layout lanes used for masonry-like virtualization. (Ch 007, Ch 010)

measureElement - A ref callback that measures a rendered DOM item, normally through its bounding rectangle. (Ch 007, Ch 011)

overscan - The number of extra items rendered beyond the visible range to reduce blank space during fast scrolling. (Ch 003, Ch 009)

paddingStart / paddingEnd - Virtual content space before or after the item range. (Ch 007, Ch 013)

rangeExtractor - A function that can alter which indexes are returned, useful for keeping sticky indexes rendered. (Ch 007, Ch 015)

scrollMargin - The page offset used to translate items correctly when the window is the scroll element. (Ch 007, Ch 020)

scrollPaddingStart - Space reserved by imperative scrolling so an item is not hidden behind fixed content. (Ch 007, Ch 014)

VirtualItem - The geometry record for one virtualized item: key, index, start, end, size, and lane. (Ch 008)

Virtualizer - The headless core object that observes scrolling, calculates ranges, tracks measurements, and provides scroll methods. (Ch 001, Ch 007)

virtualizer.measure() - A method that clears or recalculates measurements after geometry-affecting changes. (Ch 005, Ch 007)

virtualizer.resizeItem() - A method for supplying a known final item size outside render. (Ch 005, Ch 007)

useVirtualizer - The React hook for an element-scrolling virtualizer. (Ch 003)

useWindowVirtualizer - The React hook for a virtualizer driven by the browser window. (Ch 003, Ch 020)