Skip to content

Commit a52dacc

Browse files
committed
refactor(app): remove redundant remote config fetch check
- Removed the conditional check that prevented refetching remote config for the current user session - This change allows for more frequent updates to remote config without being restricted to error recovery scenarios
1 parent a79e439 commit a52dacc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/app/bloc/app_bloc.dart

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -411,15 +411,6 @@ class AppBloc extends Bloc<AppEvent, AppState> {
411411
return;
412412
}
413413

414-
// Avoid refetching if already loaded for the current user session, unless explicitly trying to recover from a failed state.
415-
if (state.remoteConfig != null &&
416-
state.status != AppStatus.configFetchFailed) {
417-
print(
418-
'[AppBloc] AppConfig already loaded for user ${state.user?.id} and not in a failed state. Skipping fetch.',
419-
);
420-
return;
421-
}
422-
423414
print(
424415
'[AppBloc] Attempting to fetch AppConfig for user: ${state.user!.id}...',
425416
);

0 commit comments

Comments
 (0)