Skip to content

Commit 76fc17e

Browse files
committed
fix: add entryId to deps, try fix isActive judge
Signed-off-by: Innei <tukon479@gmail.com>
1 parent 639b922 commit 76fc17e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ export const EntryItemWrapper: FC<
3535

3636
const { t } = useTranslation("common")
3737

38-
const isActive = useRouteParamsSelector(({ entryId }) => entryId === entry.entries.id)
38+
const isActive = useRouteParamsSelector(
39+
({ entryId }) => entryId === entry.entries.id,
40+
[entry.entries.id],
41+
)
3942

4043
const asRead = useAsRead(entry)
4144
const hoverMarkUnread = useGeneralSettingKey("hoverMarkUnread")

0 commit comments

Comments
 (0)