riverpod-refs

Official

Master 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.read vs ref.watch for optimal performance and reactivity.
  • Handling State Changes: Implement side effects like navigation or dialogs using ref.listen.
  • Managing Provider Lifecycle: Utilize onDispose and onCancel for 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.watch and ref.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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.