refactored and condensed technical documentation and comments across the codebase to improve readability
This commit is contained in:
@@ -44,11 +44,9 @@ class FilesBloc
|
||||
await _query(path, renew: true);
|
||||
}
|
||||
|
||||
/// LoadableState.reFetch (used by the pull-to-refresh indicator and the
|
||||
/// error-screen retry button) routes through here. The inherited retry()
|
||||
/// goes via gatherData() which respects the cache TTL — for an explicit
|
||||
/// user-initiated reload we must bypass it, otherwise the root listing
|
||||
/// silently returns its day-old cached payload without hitting the server.
|
||||
/// Pull-to-refresh and error-screen retry route through here. Unlike the
|
||||
/// inherited retry() (via gatherData(), which respects the cache TTL), this
|
||||
/// bypasses the TTL — otherwise the root listing returns its day-old cache.
|
||||
@override
|
||||
void retry() {
|
||||
unawaited(refresh());
|
||||
|
||||
Reference in New Issue
Block a user