Questions tagged [async-redux]
7 questions
2
votes
2 answers
Using Flutter and Redux or AsyncRedux, how can I uncouple widgets from the app state?
Suppose that a Flutter app uses Redux for its state management (flutter_redux or async_redux).
The state is in a class AppState, and the store is Store (for example like this: http://flutterbyexample.com/app-state-model).
Then container…

Marcelo Glasberg
- 29,013
- 23
- 109
- 133
1
vote
2 answers
I can't render the API I fetched with createAsyncThunk when I refresh the page
When I first open the app it gets the data from api but when I refresh the page it says Cannot read properties of undefined (reading 'memes'). When I console.log the store item It shows an empty object but I can see the api with Redux Devtools…

Ahmet Ulutaş
- 187
- 7
1
vote
1 answer
Reducer for nested state with async_redux
I am trying out async_redux for Flutter and like the idea with nested states.
I have a AppState like this:
class AppState {
final LoginState loginState;
AppState({this.loginState});
AppState copy({LoginState loginState}) {
return…

Neigaard
- 3,726
- 9
- 49
- 85
1
vote
1 answer
How do you pass a TextEditingController value from a page to an action in Flutter using the async-redux package?
I am learning how to use the async-redux package in Flutter.
https://pub.dev/packages/async_redux
The samples are good for the most part, however rather simplistic. In particular, they show how to call an action from a page (i.e. how to hook a…

mcliedtk
- 1,031
- 1
- 12
- 20
0
votes
1 answer
Why createAsyncThunk is not returning error message?
The url I put inside axios.get is a wrong url. I am expecting an error message through action.error.message in the reducer section. But it's not returning any message despite the fetch request being failed. The code as follows:
usersSlice.js
const…

Emdadudl Haque Apu
- 35
- 5
0
votes
1 answer
How to mock dispatch methods in ReduxAction from flutter package `async_redux`
I am developing an android / ios application in flutter, and I have chosen to use redux for my state management.
I am writing unit tests for my redux actions, which have been implemented using the async_redux package.
I am following the excellent…

Gavin S
- 579
- 1
- 9
- 21
0
votes
1 answer
How to implement Route Navigation with async_redux
I'm new in Flutter and Dart and found a new "async_redux" package in https://pub.dev/packages/async_redux to develop my project easier way than traditional "redux" package. In readme document there is a short description about implement Route…