Skip to content

Commit e105925

Browse files
committed
Log warning instead of retrying
1 parent 2501ea1 commit e105925

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/virtual-core/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ export class Virtualizer<
978978

979979
const offsetInfo = this.getOffsetForIndex(index, currentAlign)
980980
if (!offsetInfo) {
981-
scheduleRetry(currentAlign)
981+
console.warn('Failed to get offset for index:', index)
982982
return
983983
}
984984
const [offset, align] = offsetInfo
@@ -988,7 +988,7 @@ export class Virtualizer<
988988
const currentOffset = this.getScrollOffset()
989989
const afterInfo = this.getOffsetForIndex(index, align)
990990
if (!afterInfo) {
991-
scheduleRetry(align)
991+
console.warn('Failed to get offset for index:', index)
992992
return
993993
}
994994

0 commit comments

Comments
 (0)