From f40d9b27aadf82ea251955bf3752e51634e54df3 Mon Sep 17 00:00:00 2001 From: inokawa <48897392+inokawa@users.noreply.github.com> Date: Fri, 28 Jul 2023 23:13:35 +0900 Subject: [PATCH] Refactor --- src/core/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;