Skip to content

Commit f107b24

Browse files
committed
set to 3 pages
1 parent e7cda1f commit f107b24

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/working-notes/todo4.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ spellcheck yarn script
142142
use react-icons for icons in react and not slot with astro-icons
143143

144144
gallery cumulative layout shift, min-height, debounce 0 for first page - just set INITIAL_PAGE // ok
145+
convert fetchImagesUpToPage to fetchImagesForPage for immutable state
145146
```
146147

147148

src/constants/gallery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const GALLERY = {
66
/** step. */
77
PAGE_SIZE: 3,
88
/** page dependency in useEffect is more important. To load first screen quickly, set to 3 pages */
9-
INITIAL_PAGE: 1,
9+
INITIAL_PAGE: 3,
1010
/** fine tuned for scroll */
1111
OBSERVER_DEBOUNCE: 300,
1212
} as const;

0 commit comments

Comments
 (0)