riverpod-offline

Official

Persist Riverpod state offline

Authorserverpod
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enables the persistence of Riverpod notifier state, ensuring that data survives application restarts and remains accessible even when offline.

Core Features & Use Cases

  • Offline State Persistence: Stores provider state on the device using packages like riverpod_sqflite.
  • Notifier Support: Only Notifier-based providers can be persisted.
  • Key Management: Uses unique and stable keys for state identification and restoration.
  • Code Generation: Supports @JsonPersist() for automatic key, encode, and decode generation.
  • Cache Duration Control: Allows for long-lived data storage with StorageOptions.
  • Migration Handling: Provides destroyKey for discarding old data shapes.
  • Testing: Facilitates testing by overriding storage with Storage.inMemory().

Quick Start

Use the riverpod-offline skill to persist the 'todo_list' provider state using the 'todo_list' key and a custom JSON encoder and decoder.

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-offline
Download link: https://github.com/serverpod/skills-registry/archive/main.zip#riverpod-offline

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.