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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user