@tanstack/virtual-core
Advanced tools
Comparing version 3.11.3 to 3.12.0
@@ -116,3 +116,3 @@ export * from './utils.js'; | ||
} | null; | ||
private getIndexes; | ||
getVirtualIndexes: () => number[]; | ||
indexFromElement: (node: TItemElement) => number; | ||
@@ -119,0 +119,0 @@ private _measureElement; |
@@ -441,3 +441,3 @@ import { debounce, memo, notUndefined, approxEqual } from "./utils.js"; | ||
); | ||
this.getIndexes = memo( | ||
this.getVirtualIndexes = memo( | ||
() => { | ||
@@ -468,3 +468,3 @@ let startIndex = null; | ||
{ | ||
key: process.env.NODE_ENV !== "production" && "getIndexes", | ||
key: process.env.NODE_ENV !== "production" && "getVirtualIndexes", | ||
debug: () => this.options.debug | ||
@@ -538,3 +538,3 @@ } | ||
this.getVirtualItems = memo( | ||
() => [this.getIndexes(), this.getMeasurements()], | ||
() => [this.getVirtualIndexes(), this.getMeasurements()], | ||
(indexes, measurements) => { | ||
@@ -541,0 +541,0 @@ const virtualItems = []; |
{ | ||
"name": "@tanstack/virtual-core", | ||
"version": "3.11.3", | ||
"version": "3.12.0", | ||
"description": "Headless UI for virtualizing scrollable elements in TS/JS + Frameworks", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -699,3 +699,3 @@ import { approxEqual, debounce, memo, notUndefined } from './utils' | ||
private getIndexes = memo( | ||
getVirtualIndexes = memo( | ||
() => { | ||
@@ -728,3 +728,3 @@ let startIndex: number | null = null | ||
{ | ||
key: process.env.NODE_ENV !== 'production' && 'getIndexes', | ||
key: process.env.NODE_ENV !== 'production' && 'getVirtualIndexes', | ||
debug: () => this.options.debug, | ||
@@ -819,3 +819,3 @@ }, | ||
getVirtualItems = memo( | ||
() => [this.getIndexes(), this.getMeasurements()], | ||
() => [this.getVirtualIndexes(), this.getMeasurements()], | ||
(indexes, measurements) => { | ||
@@ -822,0 +822,0 @@ const virtualItems: Array<VirtualItem> = [] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
198432