Files
romm/frontend
Georges-Antoine Assi 79f350ab3e fix(v2): cancel gallery windows that scroll out of view
Switching from per-card to per-window fetching dropped the departure
cancellation the per-card path had: scrolling through a large library
started a request per 72-item window encountered and left every departed
window downloading and applying in the background, the wasted network /
backend / render work this change set out to avoid on low-power devices.

Add store.syncVisibleWindows(positions): it starts the windows covering
the visible positions (deduped in fetchWindowAt) and aborts any in-flight
or retry-pending window that no longer covers one. The shell's debounced
viewport sync now delegates to it. Also abort in-flight windows when the
gallery unmounts (onBeforeRouteLeave doesn't reset the store), keeping
the loaded cache so returning is still instant. Drops the shell's dead
visiblePositions bookkeeping.

Generated-By: PostHog Code
Task-Id: 6690877a-9c32-4c91-a78b-3d6fd3851fb7
2026-07-16 09:05:25 -04:00
..
2026-06-22 10:06:03 -04:00
2025-09-09 20:19:30 -04:00
2026-05-30 20:53:52 -04:00
2026-06-25 17:17:23 -04:00