What problem does it solve?
This Skill helps you create predictable reactive state in rikka without manual bookkeeping, so updates, derived values, and side effects stay synchronized.
Core Features & Use Cases
- Signal State: Create writable state with signal for counters, form inputs, toggles, and structured app data.
- Derived Reactivity: Use computed to express values that automatically recalculate from dependencies.
- Side Effects and Cleanup: Use effect for logging, subscriptions, DOM synchronization, and timer lifecycles with proper disposal.
- Untracked Reads: Read current signal values without subscribing when you need a snapshot instead of a dependency.
- Use Case: Build a live UI that updates a badge count, fetches data when inputs change, and avoids feedback loops by separating reads from writes.
Quick Start
Use the reactive-state skill to create a signal-based counter with a derived value, an effect, and a safe untracked read.