riverpod-auto-dispose
OfficialManage Riverpod provider lifecycles.
Software Engineering#state management#memory management#riverpod#dart#auto-dispose#provider lifecycle
Authorserverpod
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps manage the lifecycle of Riverpod providers, ensuring resources are cleaned up efficiently and preventing memory leaks by automatically disposing of providers when they are no longer in use.
Core Features & Use Cases
- Automatic Disposal: Providers are automatically destroyed when they have no listeners.
- Resource Management: Clean up resources (like StreamControllers) when a provider is disposed.
- State Caching Control: Prevent memory leaks by managing provider state, especially for family providers.
- Use Case: When working with a complex application state managed by Riverpod, this skill ensures that components that are no longer visible or interacting with a provider do not continue to consume memory or perform unnecessary computations.
Quick Start
Use the riverpod-auto-dispose skill to enable automatic disposal for the myProvider.
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-auto-dispose Download link: https://github.com/serverpod/skills-registry/archive/main.zip#riverpod-auto-dispose 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.