asyncredux-check-internet-mixin

Guard Flutter AppAction workflows with Asyncredux connectivity checks before execution.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/pro100andrey/dar --skill asyncredux-check-internet-mixin-pro100andrey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: asyncredux-check-internet-mixin
Source: https://github.com/pro100andrey/dar/tree/main/.claude/skills/asyncredux-check-internet-mixin
Command: npx skills add https://github.com/pro100andrey/dar --skill asyncredux-check-internet-mixin-pro100andrey

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The CheckInternet mixin ensures actions do not execute when the device lacks connectivity, preventing failed requests and disruptive UX.

Core Features & Use Cases

  • Guard network-dependent actions by checking connectivity before execution.
  • Trigger a standard error dialog when offline, with an option to customize.
  • Combine with NoDialog to handle errors in your widgets or with AbortWhenNoInternet for silent aborts.

Quick Start

Add the CheckInternet mixin to your AppAction to enforce connectivity before performing a network request.

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 prevent a Flutter app action from running when offline?

To prevent an app action from running when offline, use the CheckInternet mixin on your Asyncredux AppAction. It checks connectivity in the before() method and raises a UserException to stop the action before execution.

What is the best way to check internet connectivity in Asyncredux before a network request?

The best way to check internet connectivity in Asyncredux is applying the CheckInternet mixin. It guards network-dependent actions by verifying connectivity beforehand, preventing failed requests and disruptive UX.

Can I abort an Asyncredux action silently without showing a dialog when there is no internet?

Yes, you can abort an Asyncredux action silently without showing a dialog by combining the CheckInternet mixin with the NoDialog variant to handle errors directly in your widgets, or use AbortWhenNoInternet for silent aborts.

Does the CheckInternet mixin work with retry logic for failed network operations in Flutter?

Yes, the CheckInternet mixin works with retry logic in Flutter. You can combine it with the Retry or UnlimitedRetry mixins to add resilience and automatically re-attempt network-dependent actions after connectivity is restored.

Why does my Asyncredux data fetch fail when the device lacks connectivity?

Your Asyncredux data fetch fails when the device lacks connectivity because the action is not guarded. Adding the CheckInternet mixin intercepts the execution in the before() method to trigger a dialog instead of attempting a failed request.

How do I customize the offline error handling for Asyncredux form submissions?

To customize offline error handling for Asyncredux form submissions, add the CheckInternet mixin and apply the NoDialog variant. This bypasses the standard error dialog, allowing you to handle the UserException directly within your widget tree.