You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was debugging an issue and observed that an async signal can temporarily propagate an invalid state where isCompleted is false and the data is set. This is because the library sets the value before setting the _completer:
I was debugging an issue and observed that an async signal can temporarily propagate an invalid state where
isCompleted
is false and the data is set. This is because the library sets the value before setting the _completer:Widget:
Logs
flutter: isCompleted: false type: AsyncLoading<Map<String, List>> hasValue: false
flutter: isCompleted: false type: AsyncData<Map<String, List>> hasValue: true
After a hot reload, I can see
isCompleted
is set to true;I'm not sure if this is a desired behaviour, as it can lead to errors for anyone checking
isCompleted
instead od using the map function.The text was updated successfully, but these errors were encountered: