Skip to content

Is it normal always checking «isMounted» in StateNotifier when performing asynchronous calls? #644

Discussion options

You must be logged in to vote

This is alright. Although I would suggest using CancelToken from dio to cancel pending network requests, instead of letting them continue and ignore their results.

This will consume fewer resources.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ViacheslavSomin
Comment options

Answer selected by ViacheslavSomin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants