refresh-with-throttle

Throttle pull-to-refresh actions in Cubit-based list screens.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pull-to-refresh can flood servers and degrade UX; this skill throttles refresh actions to prevent spam and provide controlled data reloads.

Core Features & Use Cases

  • Throttle refresh requests to avoid rapid, repeated reloads
  • Support force-refresh bypass to refresh on demand
  • Coordinate load-more flows with separate throttling to ensure smooth scrolling
  • Keep existing data visible during refresh and handle errors gracefully

Quick Start

Integrate a throttle-enabled refresh into your Cubit and trigger a forced refresh on the pull-to-refresh gesture.

Frequently Asked Questions about refresh-with-throttle

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

FAQPage Schema
How do I throttle pull-to-refresh actions to prevent server spam in Flutter?

Throttling pull-to-refresh restricts rapid reloads by applying duration-based constraints within a Cubit architecture. This prevents server spam while keeping existing data visible and handling errors gracefully during reloads.

Can I force a refresh to bypass throttle limits on demand?

Yes, you can force a refresh to bypass throttle limits on demand. The architecture implements a force-refresh bypass, allowing you to trigger an immediate data reload manually whenever needed, overriding standard duration constraints.

How do I coordinate load-more flows with throttling in a Cubit architecture?

You coordinate load-more flows by applying separate throttling rules within a Cubit architecture. This isolates pagination from pull-to-refresh, managing initial loads and refreshes without interrupting load-more scrolling.

What is the best way to handle error retries during a throttled refresh?

The best way to handle error retries during a throttled refresh is using safe retry constraints. The system handles errors gracefully by keeping existing data visible and allowing safe retries that respect the throttle duration.

Does this throttling approach work for list screens with both initial load and refresh flows?

Yes, this throttling approach works for list screens managing initial load, refresh, and load-more flows. It is designed to restrict data reloads across these states while keeping existing data visible and supporting force-refresh bypass.