Skip to content

Commit 8102400

Browse files
committed
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 <[email protected]>
1 parent 8ed0a68 commit 8102400

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ export const EntryItemWrapper: FC<
8888
e.stopPropagation()
8989

9090
const shouldNavigate = getRouteParams().entryId !== entry?.id
91+
console.info(
92+
"handleClick",
93+
e,
94+
getRouteParams().entryId,
95+
entry?.id,
96+
shouldNavigate,
97+
entry?.feedId,
98+
)
9199
if (!shouldNavigate) return
92100
if (!entry?.feedId) return
93101
if (!asRead) {

0 commit comments

Comments
 (0)