-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onDidChange called twice #76
Comments
Hey there -- thanks for letting me know! do you happen to have a bit more code you can show? The |
Hi brianegan, ofc here the full source. It still in very early of my development, i am still crafting it. |
@brianegan I found another way to handle the login error and success. Instead of listening the store, I use a function callback from my action. So I put callback on my action and call the callback function when login error or login success. |
Awesome, thanks @apinprastya :) As a heads up, I managed to reproduce the issue, and I'm trying to find the root cause. It seems like the I might start scheduling this callback with |
So I have a login screen and I need to listen if the login is success or not, if not success I just show the snackbar. I use StoreBuilder and using onDidChange to listen the state, on the first attempt it only called once, but for next login click button the onDidChange is called twice.
I am not sure if my approach is right, I am new at flutter and dart. Thank you for the awesome lib.
flutter_redux: 0.5.2
lutter beta 0.5.1
The text was updated successfully, but these errors were encountered: