asyncredux-navigation

Dispatch AsyncRedux NavigateAction to drive route transitions in tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AsyncRedux navigation enables testing and controlling app navigation by dispatching actions, allowing navigation logic to be unit tested in isolation from the widget tree.

Core Features & Use Cases

  • Setup the navigator key with NavigateAction.setNavigatorKey(...) and register it at startup.
  • Configure MaterialApp with the same navigatorKey to enable navigation actions.
  • Dispatch navigation actions: push, pushNamed, pushReplacement, pop, popUntil, replace, and remove to drive route changes in tests.
  • Use NavigateAction within other Redux actions to navigate after async operations.

Quick Start

Bind a navigatorKey to NavigateAction and dispatch a pushNamed to navigate to a new route.

Frequently Asked Questions about asyncredux-navigation

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

FAQPage Schema
How do I unit test Flutter navigation logic in isolation from the widget tree?

You test navigation by dispatching NavigateAction via AsyncRedux to trigger push, pop, and replace operations on named routes. This decouples navigation testing from the widget tree, allowing route transitions to be verified in isolation.

What is the best way to control Flutter app navigation using AsyncRedux state management?

Controlling navigation with AsyncRedux involves registering a navigator key via NavigateAction.setNavigatorKey and binding it to MaterialApp. You then dispatch pushNamed or popUntil actions within Redux actions to manage route changes after async operations.

How do I set up NavigateAction for testing route transitions in a Flutter app?

To set up NavigateAction, call NavigateAction.setNavigatorKey(...) at startup and configure your MaterialApp with the same navigatorKey. This enables dispatched push, pop, and remove actions to drive testable route transitions across named routes.

Can I navigate to a new route after an async operation completes in AsyncRedux?

Yes, you can navigate after an async operation by including a NavigateAction, such as pushReplacement or pushNamed, within your AsyncRedux action. This dispatches the route change automatically once the async process finishes.

Does AsyncRedux NavigateAction support route replacement and stack removal operations?

Yes, NavigateAction supports dispatching replace and remove actions to modify the navigation stack. It also handles push, pushNamed, pop, and popUntil, providing comprehensive control over named route transitions during testing.