fix: add entryId to deps, try fix `isActive` judge
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
parent
639b922ec8
commit
76fc17eddf
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue