DonArtkins

riverpod-state

"Riverpod state management on Griot mobile: server state from graphql_flutter/dio with explicit refetch, client-only UI state in providers, auth token in memory. Guide allows Provider/Riverpod; we chose Riverpod."

DonArtkins 0 Updated 4d ago
GitHub

Install

npx skillscat add donartkins/griot/riverpod-state

Install via the SkillsCat registry.

SKILL.md

Riverpod State Skill

Providers

  • authProvider — accessToken + user (memory; cleared on restart).
  • Feature providers mirror the Zustand split on web: server state refetched explicitly; UI state (filters, panel visibility) in providers.
  • Use ProviderScope at the root.

Rules

  • No server data duplication into providers that already have a cache/refetch path.
  • Status change = picker, not drag-drop (mobile idiom).

Categories