mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 10:08:40 +01:00
A list row fetched its rom only in onMounted. A filter / search / sort / scan refresh clears byPosition and repopulates romIdIndex while the row stays mounted at the same position, so it was stranded on skeletons until it scrolled out and remounted. Replace the onMounted fetch with a watch that fires fetchRomAt whenever the position is missing its rom but the store knows its id. Guarding on the id (not just a null rom) also refetches when a resort lands a different rom at the same position. The store still dedupes against in-flight + already-loaded, so re-runs are cheap. Generated-By: PostHog Code Task-Id: fe232494-3d20-4d83-9eaa-3ce341d4e7b5