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 notice in feature/mvi branch (the latest) that languagestore, themestore, userstore is registered in service_locator AS well as new'd up again in MyApp. This seems like duplication
i.e.
getIt.registerSingleton(LanguageStore(getIt()));
getIt.registerSingleton(ThemeStore(getIt()));
getIt.registerSingleton(UserStore(getIt()));
and also in my_app.dart
final ThemeStore _themeStore = ThemeStore(getIt());
final PostStore _postStore = PostStore(getIt());
final LanguageStore _languageStore = LanguageStore(getIt());
final UserStore _userStore = UserStore(getIt());
The text was updated successfully, but these errors were encountered:
@tribal2 thanks buddy! I think it's a bug as it double-initializes the store.
I applied your suggestion and it solved the problem of values saved in shared preferences when starting the application.
I notice in feature/mvi branch (the latest) that languagestore, themestore, userstore is registered in service_locator AS well as new'd up again in MyApp. This seems like duplication
i.e.
getIt.registerSingleton(LanguageStore(getIt()));
getIt.registerSingleton(ThemeStore(getIt()));
getIt.registerSingleton(UserStore(getIt()));
and also in my_app.dart
final ThemeStore _themeStore = ThemeStore(getIt());
final PostStore _postStore = PostStore(getIt());
final LanguageStore _languageStore = LanguageStore(getIt());
final UserStore _userStore = UserStore(getIt());
The text was updated successfully, but these errors were encountered: