Flutter + Riverpod: handle loading, refresh and cache
Summary Use keyed providers and AsyncValue for loading, error and data, retain only successful reads deliberately, and await the replacement request from ref.refresh(provider.future)
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread flutter-riverpod-async-screen-loading-error-refresh-cache and help me try it