Skip to content

Commit

Permalink
fix: daily report link title
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 14, 2024
1 parent 992ea15 commit 0a58159
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { useNavigateEntry } from "@renderer/hooks/biz/useNavigateEntry"
import { useAuthQuery } from "@renderer/hooks/common"
import { FeedViewType } from "@renderer/lib/enum"
import { isBizId } from "@renderer/lib/utils"
import { useEntryContentContext } from "@renderer/modules/entry-content/hooks"
import { Queries } from "@renderer/queries"
import { useEntry } from "@renderer/store/entry"
import { useFeedByIdSelector } from "@renderer/store/feed"
import { useCallback, useMemo } from "react"
Expand Down Expand Up @@ -37,6 +39,10 @@ export const MarkdownLink = (props: LinkProps) => {
}, [feedSiteUrl, props])
const entryId = isBizId(props.href) ? props.href : null
const entry = useEntry(entryId)
useAuthQuery(Queries.entries.byId(entryId!), {
enabled: !!entryId && !entry,
staleTime: 1000 * 60 * 5,
})

const navigate = useNavigateEntry()
const onClick = useCallback(
Expand Down

0 comments on commit 0a58159

Please sign in to comment.