forked from eatvio/eatvio_app
feat: enhance Firebase messaging error logging and simplify BottomNavigationBarWidget by removing profileModel dependency
This commit is contained in:
@@ -77,9 +77,11 @@ class _FeedScreenContentState extends State<FeedScreenContent> {
|
||||
_checkRegistrationDate(context);
|
||||
// Инициализация глобальных кубитов при первом открытии экрана
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (!mounted) return;
|
||||
final feedCubit = context.read<FeedCubit>();
|
||||
final state = feedCubit.state;
|
||||
if (state is! FeedStateLoaded && state is! FeedStateLoading) {
|
||||
// Загружаем данные, если они еще не загружены
|
||||
if (state is! FeedStateLoaded) {
|
||||
feedCubit.loadFeedBlogPostList();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user