fix(mobile): remove prefetching of entry translations

- Removed `usePrefetchEntryTranslation` calls from `EntryGridFooter`, `EntryNormalItem`, and `EntrySocialItem` components to optimize performance and reduce unnecessary data fetching.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-04-07 19:38:08 +08:00
parent 4fc8ec3f42
commit cd024e45d3
3 changed files with 4 additions and 6 deletions
@@ -9,7 +9,7 @@ import { FeedIcon } from "@/src/components/ui/icon/feed-icon"
import { gentleSpringPreset } from "@/src/constants/spring"
import { useEntry } from "@/src/store/entry/hooks"
import { useFeed } from "@/src/store/feed/hooks"
import { useEntryTranslation, usePrefetchEntryTranslation } from "@/src/store/translation/hooks"
import { useEntryTranslation } from "@/src/store/translation/hooks"
import { useEntryListContextView } from "../entry-list/EntryListContext"
import { EntryTranslation } from "../entry-list/templates/EntryTranslation"
@@ -22,7 +22,7 @@ export const EntryGridFooter = ({
descriptionClassName?: string
}) => {
const entry = useEntry(entryId)
usePrefetchEntryTranslation(entryId)
const translation = useEntryTranslation(entryId)
const feed = useFeed(entry?.feedId || "")
const view = useEntryListContextView()