Asyncredux debugging

From marcglasberg/async_redux · View interactive version

Asyncredux debugging is an AI agent skill from the GitHub repository marcglasberg/async_redux. Diagnose AsyncRedux dispatch timing, state changes, failures, and unexpected Flutter widget rebuilds.

How to use this skill

Skill file

Debug AsyncRedux apps

Start with the dispatch and the exact slice of state the widget selects. Inspect

store.state and store.actionsInProgress() at the relevant point. For a known

dispatch, use dispatchAndWait and inspect its status and resulting state. Check

for silent aborts, a reducer returning null, and async reducers copying state

captured before an await. For failures, compare originalError with wrappedError.

Register ConsoleActionObserver<AppState>() in the store's actionObservers to

trace actions during development. dispatchCount helps correlate work with other logs.

When a widget rebuilds unexpectedly, inspect whether the selector returns a new

collection or a value whose equality changes each time. Inspect parent rebuilds

as well. Keep selectors pure and use Flutter's widget rebuild diagnostics to trace

the build. For missing rebuilds, verify the widget is under the intended provider

and that the selected value changes through an immutable state update.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.