Skip to content

Commit 0b2b6bf

Browse files
committed
perf(account): reduce delay on initial load
- Reduced delay to 50ms - Improves perceived responsiveness
1 parent b4be24d commit 0b2b6bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/account/bloc/account_bloc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class AccountBloc extends Bloc<AccountEvent, AccountState> {
8585
// needed in production/development where backend handles migration.
8686
if (_environment == local_config.AppEnvironment.demo) {
8787
// ignore: inference_failure_on_instance_creation
88-
await Future.delayed(const Duration(seconds: 1));
88+
await Future.delayed(const Duration(milliseconds: 50));
8989
// After delay, re-attempt to read the preferences.
9090
// This is crucial because migration might have completed during the delay.
9191
try {

0 commit comments

Comments
 (0)