Drop stale folder listings: only the latest load renders, only in the files view (#817) #819

Merged
Cordy merged 2 commits from fix-817 into main 2026-09-29 16:59:37 +00:00
Owner

Closes #817. Root cause and evidence are in the #817 comment (live instrumentation): leaving Administration starts load(<prev folder>), the router then opens the Spaces overview, and the late fetch renders into the page (footer, rows, currentItems, read-only state, space header).

  • load() takes a loadSeq ticket. After the fetch, and in the catch, it returns early unless it is still the latest load and currentView === "files". The same pattern the overview uses (spacesovSeq). 9 lines, one function.
  • It also fixes two quick folder clicks rendering out of order.

Tests: qa817 runs the real load() in a vm sandbox with a controllable fetch. RED 9fdf91d0 (3 bug cases) → green; control case unchanged. Web 313/313; node --check passes.

Closes #817. Root cause and evidence are in the #817 comment (live instrumentation): leaving Administration starts `load(<prev folder>)`, the router then opens the Spaces overview, and the late fetch renders into the page (footer, rows, `currentItems`, read-only state, space header). - `load()` takes a `loadSeq` ticket. After the fetch, and in the catch, it returns early unless it is still the latest load and `currentView === "files"`. The same pattern the overview uses (`spacesovSeq`). 9 lines, one function. - It also fixes two quick folder clicks rendering out of order. Tests: `qa817` runs the real `load()` in a `vm` sandbox with a controllable fetch. RED 9fdf91d0 (3 bug cases) → green; control case unchanged. Web 313/313; `node --check` passes.
Cordy merged commit c53075c492 into main 2026-09-29 16:59:37 +00:00
Cordy deleted branch fix-817 2026-09-29 16:59:39 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#819
No description provided.