asyncredux-check-internet-mixin

Enforce connectivity checks before action execution in AsyncRedux apps.

238|39|Updated Aug 4, 2019
One-click install
npx skills add https://github.com/marcglasberg/async_redux --skill asyncredux-check-internet-mixin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: asyncredux-check-internet-mixin
Source: https://github.com/marcglasberg/async_redux/tree/main/.claude/skills/asyncredux-check-internet-mixin
Command: npx skills add https://github.com/marcglasberg/async_redux --skill asyncredux-check-internet-mixin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The CheckInternet mixin ensures connectivity before an action executes in AsyncRedux. If there is no internet connection, the action can abort or trigger a default error dialog, enabling a graceful user experience.

Core Features & Use Cases

  • Automatically verify connectivity before dispatching actions.
  • Supports NoDialog to suppress automatic error dialogs and allow custom UI handling.
  • AbortWhenNoInternet enables silent aborts for non-critical operations, preventing UI disruption.

Quick Start

Use the asyncredux-check-internet-mixin to guard an AppAction with a connectivity check, optionally mixing in NoDialog or AbortWhenNoInternet to customize UI behavior when offline.

Frequently Asked Questions about asyncredux-check-internet-mixin

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

FAQPage Schema
How do I check internet connectivity before executing an action in AsyncRedux?

To check internet connectivity in AsyncRedux, use the CheckInternet mixin on your AppAction to verify the connection before execution. If offline, the action aborts or triggers a default error dialog for a graceful user experience.

How do I prevent the default offline error dialog in AsyncRedux?

Prevent the default offline error dialog in AsyncRedux by mixing in NoDialog. This suppresses the automatic error dialog, allowing custom UI handling when CheckInternet detects no internet connection.

Can I silently abort a Flutter Redux action when there is no internet connection?

Yes, silently abort a Flutter Redux action when offline by using the AbortWhenNoInternet mixin. This enables silent aborts for non-critical operations, preventing UI disruption without triggering error dialogs.

Does the AsyncRedux CheckInternet mixin support testing and debugging offline scenarios?

Yes, the AsyncRedux CheckInternet mixin supports testing and debugging offline scenarios. It provides strategies for testing connectivity checks and documents limitations to ensure offline app stability.

What are the limitations of using a connectivity mixin for offline actions in Flutter?

Limitations of using a connectivity mixin for offline actions in Flutter include documented constraints for offline scenarios. The mixin enforces connectivity checks but relies on aborts or dialogs, which may not suit all background tasks.