use-composite-key

Tracks Dart per-item loading and error states using composite keys.

7|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/marcglasberg/bloc_superpowers --skill use-composite-key
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-composite-key
Source: https://github.com/marcglasberg/bloc_superpowers/tree/main/.claude/skills/use-composite-key
Command: npx skills add https://github.com/marcglasberg/bloc_superpowers --skill use-composite-key

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing loading and error states for individual items in a list can be cumbersome when each operation should reflect per-item progress without leaking state across items.

Core Features & Use Cases

  • Per-item loading indicators using composite keys like (Action, id).
  • Independent error handling per item enabling isolated retries.
  • Concurrency support for multiple items in parallel without state clashes.

Quick Start

Use composite keys to track per-item operations by pairing the action and identifier in mix calls and query UI state with the same key.

Frequently Asked Questions about use-composite-key

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track per-item loading states in a Flutter Cubit without leaking state across list items?

Track per-item loading states in a Flutter Cubit by using Dart records as composite keys, such as (Action, id). This pairs the specific operation with the item identifier in mix calls to isolate loading and error handling without state clashes across list items.

What is the best way to handle independent error tracking and retries for multiple items in a Dart list?

Independent error tracking for multiple items in a Dart list is handled by querying state with composite keys. Using keys like (Action, id) in mix calls ensures each item's error state is isolated, enabling safe independent retries without affecting other items in the list.

How do I use Dart records as composite keys for concurrent operations in Flutter state management?

Use Dart records as composite keys for concurrent operations by pairing the action and identifier, like (Action, id), in mix calls. Query the UI state with the exact same composite key to maintain independent loading and error states for items running in parallel.

Does Cubit state management support per-item loading indicators for batch operations in Flutter?

Cubit state management supports per-item loading indicators for batch operations by utilizing Dart records as composite keys. Applying keys like (Action, id) allows you to track loading progress and handle errors for multiple items concurrently within list-based UIs.

Why does my Flutter Cubit loading state overwrite other items during parallel batch operations?

Cubit loading states overwrite each other during parallel batch operations when items share a single state key. Using Dart records as composite keys, such as (Action, id), isolates state tracking per item to prevent clashes and maintain independent loading indicators.