This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Method listening to an action gets called multiple times #44
Comments
maybe you should call @override
void dispose() {
super.dispose();
unlistenFromStore(store);
} |
@iptton
|
The issue is Workaround: add listener only once on App start up. |
Instead, you could try calling |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If a method is listening to an action then for first time it gets hit once, then for next time if user gets back to the same page then the method gets hit twice and on third time its 3 times and increases every time.
Below is a code to simulate the same on click of Next a action is called and on action change the user is taken to second page, but on second time the action listening method gets hit twice.
The text was updated successfully, but these errors were encountered: