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.