diff --git a/src/core/store.ts b/src/core/store.ts index 49a47ccc0..554cdc29a 100644 --- a/src/core/store.ts +++ b/src/core/store.ts @@ -94,7 +94,7 @@ export const createVirtualStore = ( const shouldAutoEstimateItemSize = !itemSize; const initialItemSize = itemSize || 40; const cache = - (cacheSnapshot as unknown as Cache | undefined) ?? + (cacheSnapshot as unknown as Cache | undefined) || initCache(elementsCount, initialItemSize); let viewportSize = initialItemSize * max(initialItemCount - 1, 0); let scrollOffset = 0;