feat(desktop): add debug logging in EntryItemWrapper for click handling
- Introduced console logging in the handleClick function to track navigation decisions and entry details. - This addition aids in debugging navigation logic by providing insights into the entryId and feedId during click events. Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -88,6 +88,14 @@ export const EntryItemWrapper: FC<
|
||||
e.stopPropagation()
|
||||
|
||||
const shouldNavigate = getRouteParams().entryId !== entry?.id
|
||||
console.info(
|
||||
"handleClick",
|
||||
e,
|
||||
getRouteParams().entryId,
|
||||
entry?.id,
|
||||
shouldNavigate,
|
||||
entry?.feedId,
|
||||
)
|
||||
if (!shouldNavigate) return
|
||||
if (!entry?.feedId) return
|
||||
if (!asRead) {
|
||||
|
||||
Reference in New Issue
Block a user