BigHugger
sk Skill · maxrave-dev

cache-then-network

Serve the stored copy immediately, then the fresh one, from a single repository flow — and emit an error only when nothing was served, because an error after a successful emission replaces working content the user is already reading. Use when a screen shows a spinner on every open despite having shown the same data a minute ago, or when a brief network failure blanks a screen that had perfectly good content on it.

installs 8w
0
30-day movement
starts with the next reading
Related entries
1
Connections
0
kotlin
Host repository
maxrave-dev/kotlin-footguns
Host stars
541