Skip to content

Commit

Permalink
fix: add entryId to deps, try fix isActive judge
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <tukon479@gmail.com>
  • Loading branch information
Innei committed Dec 9, 2024
1 parent 639b922 commit 76fc17e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ export const EntryItemWrapper: FC<

const { t } = useTranslation("common")

const isActive = useRouteParamsSelector(({ entryId }) => entryId === entry.entries.id)
const isActive = useRouteParamsSelector(
({ entryId }) => entryId === entry.entries.id,
[entry.entries.id],
)

const asRead = useAsRead(entry)
const hoverMarkUnread = useGeneralSettingKey("hoverMarkUnread")
Expand Down

0 comments on commit 76fc17e

Please sign in to comment.