Closed mohammadameer closed 4 years ago
You should list the observed states in the viewmodel builder super(equals: [ .......... ])
For example:
ViewModel.build({
@required this.firstName,
}) : super(equals: [firstName]);
Otherwise it can't know when to rebuild.
Does this solve your problem?
I was facing 2 problem :
1- The state is not changing
2- the ui is not changing
This fix the ui problem thanks 👍
But i still have the first problem
everything is working now thanks
I have a problem I can't find the bug my state is not changing
the main file
OtpScreen
the app state -- main state
user State
tha signup action and reduce