riverpod-refs
OfficialMaster Riverpod provider interactions.
Authorserverpod
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill clarifies how to effectively interact with Riverpod providers, manage their state, and handle their lifecycle events, preventing common errors and improving application architecture.
Core Features & Use Cases
- Reading and Watching Providers: Understand when to use
ref.readvsref.watchfor optimal performance and reactivity. - Handling State Changes: Implement side effects like navigation or dialogs using
ref.listen. - Managing Provider Lifecycle: Utilize
onDisposeandonCancelfor resource cleanup and state management. - Use Case: When building a UI component that needs to display real-time data from a Riverpod provider and also trigger an action when that data changes, this skill guides you on the correct usage of
ref.watchandref.listen.
Quick Start
Use the riverpod-refs skill to understand how to watch a provider named 'userProvider' and listen for its changes.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: riverpod-refs Download link: https://github.com/serverpod/skills-registry/archive/main.zip#riverpod-refs Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.