Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait 2 sec before showing spining loader in the mobile feed screen #2193 #2210

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/pages/commonFeed/CommonFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { useRoutesContext } from "@/shared/contexts";
import { useAuthorizedModal, useQueryParams } from "@/shared/hooks";
import { useCommonFeedItems, useUserCommonIds } from "@/shared/hooks/useCases";
import { useCommonPinnedFeedItems } from "@/shared/hooks/useCases/useCommonPinnedFeedItems";
import { useIsTabletView } from "@/shared/hooks/viewport";
import { RightArrowThinIcon } from "@/shared/icons";
import {
checkIsFeedItemFollowLayoutItem,
Expand Down Expand Up @@ -92,7 +91,6 @@ const CommonFeedComponent: FC<CommonFeedProps> = (props) => {
onActiveItemDataChange,
} = props;
const { getCommonPagePath, getProfilePagePath } = useRoutesContext();
const isTabletView = useIsTabletView();
const queryParams = useQueryParams();
const dispatch = useDispatch();
const history = useHistory();
Expand Down Expand Up @@ -437,7 +435,7 @@ const CommonFeedComponent: FC<CommonFeedProps> = (props) => {
<>
{headerEl}
<div className={styles.centerWrapper}>
<Loader delay={isTabletView ? 0 : LOADER_APPEARANCE_DELAY} />
<Loader delay={LOADER_APPEARANCE_DELAY} />
</div>
<CommonSidenavLayoutTabs className={styles.tabs} />
</>
Expand Down