Files
jarvis/Jarvis/Views
Robin Kutesa 22b859dc7b
Some checks failed
CI / Build · macos-14 · Debug (push) Has been cancelled
CI / Build · macos-15 · Debug (push) Has been cancelled
CI / Build · macos-14 · Release (push) Has been cancelled
CI / Build · macos-15 · Release (push) Has been cancelled
Fix feed jank: make seen-tracking and caching cheap
The "All" feed stuttered because every row appearing ran markSeen, which did a
disk save(), an O(n) contains over a @Query'd SeenStory array, and triggered a
full feed re-render on each insert. Now markSeen does an O(1) insert into a
non-observed reference Set, no per-row save (the container autosaves), and
SeenStory is no longer @Query'd by the view. cacheStories also does one fetch +
an in-memory index instead of a query per story.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 17:56:29 +03:00
..
2026-06-18 18:04:59 +03:00
2026-06-18 18:04:59 +03:00
2026-06-18 18:04:59 +03:00