Skip to content

Commit adda69e

Browse files
gnpricePIG208
authored andcommitted
WIP report retry of register, via SnackBar
This works fine, but UX seems not good -- SnackBar is way too busy given this can retry again and again, and can be perfectly normal if you're simply not connected.
1 parent c4ec916 commit adda69e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/model/store.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,8 @@ class UpdateMachine {
730730
} catch (e) {
731731
assert(debugLog('Error fetching initial snapshot: $e\n'
732732
'Backing off, then will retry…'));
733-
// TODO tell user if initial-fetch errors persist, or look non-transient
733+
// TODO perhaps suppress this message if error transient
734+
reportErrorToUserBriefly('Error loading server data, will retry: $e');
734735
await (backoffMachine ??= BackoffMachine()).wait();
735736
assert(debugLog('… Backoff wait complete, retrying initial fetch.'));
736737
}

0 commit comments

Comments
 (0)