Image Fallback Url Retry In Composition

Retry a record's image at a variant the source guarantees when the high-resolution one is missing, by holding the URL in composition state and swapping it once in onError. Covers making the disk-cache key follow the mutated URL, resetting the state per record, keeping the swap a no-op the second time so it cannot loop, and the invisible cost — everything hanging off onSuccess (a palette, and the page theme derived from it) silently never runs. Use when a page keeps its fallback colour for particular records, when a retried image is re-fetched on every visit, or when an image request appears to retry forever.

maxrave-dev e7c1e23 7.6 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/image-fallback-url-retry-in-composition commit e7c1e23cf0

Frequently asked questions

npx skillmds@latest add maxrave-dev/image-fallback-url-retry-in-composition