repository-resource-flow-pattern
An envelope family for repository results — a remote wrapper, a local wrapper with a loading state, and a payload-free variant — plus the wrap-side and…
Find an Agent Skill for your task. Read the guide and copy the install command.
Updated 11-15 00:13
41,127 results
An envelope family for repository results — a remote wrapper, a local wrapper with a loading state, and a payload-free variant — plus the wrap-side and…
Tell an opt-in marker from a restricted-to marker before adding suppressions — the first is enforced by the compiler and demands acknowledgement, the second…
Give every reconnect loop exponential backoff, a ceiling, a class of failures it refuses to retry, and a lifecycle gate — then give the feature a health…
Set up one Room database shared across Android, JVM/desktop and iOS with an expect/actual builder per platform, a bundled SQLite driver chosen once at the…
When two nearly identical things behave differently, count the variables that still differ and run one swap-or-trade test that eliminates at least half of…
Turn a user-facing feature off for the duration of a mode with a runtime override on the component, never by writing the stored preference — a process death…
Two playback backends need opposite plumbing for the same setting — one whose per-stream consumers sample a shared field needs no push at all, one whose every…
Filtering a paging stream only ever searches the pages already loaded, so whether an item is findable depends on how far the user happened to scroll — the…
A component that renders nothing when its feature is unavailable cannot remove the container someone else wrapped it in — gate the slot on the same…
A relay that owns the shared state stamps its own default onto fields your command did not set — most painfully forcing "not running" onto every item change —…
A selection dialog that maps the chosen localized label back to a stored value breaks the day two labels translate identically — the write is skipped or lands…
Four small helpers worth carrying in a shared module, each with the one way it misleads — a symmetric set difference for diffing two id sets, a position index…
Why `x NOT IN (subquery)` matches zero rows and still reports success whenever a NULL is actually present in the subquery result — a standing risk for any…
Inset consumption travels to a composable's descendants and never to its siblings, so two inset-aware bars stacked in one column each reserve the system bar…
A conflating state holder keeps one slot, so a callback that writes it several times per event makes write ORDER the correctness question — collectors see only…
The multiplatform resource formatter substitutes plain positional placeholders and nothing else — no flags, no width, no escaped percent — so padding,…
Reading a response whose shape drifts — classify each field by the marker the payload itself declares rather than by its position, treat a filtering map as…
One bridge joins a local component to a shared room, with the direction of travel decided by role — the source publishes what it does, the follower applies…
A small keyed cache for values that drift — each entry carries the moment it was fetched and answers an isStale check against a time-to-live constant, the…
Two vendors ship the same package name at different versions into different source sets of one multiplatform build, so a member function that one vendor has…
Lay out a type-safe Navigation-Compose graph so it stays readable as the destination list grows — one serializable route object per file grouped by area, area…
A top-N query is right for a list and wrong for a share-of-the-whole — the cut tail shrinks the denominator and the entropy normaliser, inflating concentration…
A parse-failure fallback must be a sentinel outside the legal domain, or expressed in the type — never a value the success path can also produce. Expose "not…
The shape a workaround should take when the bug is in a library you cannot patch — trace the mechanism as far as you actually got, name the tradeoffs you…