Skip to content

Commit

Permalink
fix: prefetch category
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Jan 22, 2025
1 parent c052749 commit e0d6746
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/mobile/src/modules/feed-drawer/atoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useCallback, useMemo } from "react"
import { views } from "@/src/constants/views"
import { usePrefetchEntries } from "@/src/store/entry/hooks"
import type { FetchEntriesProps } from "@/src/store/entry/types"
import { getSubscriptionByCategory } from "@/src/store/subscription/getter"

// drawer open state

Expand Down Expand Up @@ -101,7 +102,7 @@ export function useSelectedFeed() {
break
}
case "category": {
// payload = { category: selectedFeed.categoryName }
payload = { feedId: getSubscriptionByCategory(selectedFeed.categoryName).join(",") }
break
}
case "list": {
Expand Down

0 comments on commit e0d6746

Please sign in to comment.