From 7e95fe8b151234e684a06fee2bb1562fb82f7e10 Mon Sep 17 00:00:00 2001 From: Yuto Nishida Date: Sat, 11 Oct 2025 02:48:06 -0700 Subject: [PATCH] Debug print --- experimental/chatproto/packages/client/src/pages/Channel.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/experimental/chatproto/packages/client/src/pages/Channel.tsx b/experimental/chatproto/packages/client/src/pages/Channel.tsx index 7371b1a..65c00a4 100644 --- a/experimental/chatproto/packages/client/src/pages/Channel.tsx +++ b/experimental/chatproto/packages/client/src/pages/Channel.tsx @@ -23,6 +23,7 @@ const Channel = () => { const { data, isPending, isError, error: queryError } = useQuery({ queryKey: ['channel', channelNsid, hintChannelOwner], queryFn: async () => { + console.debug(`Debug: channelNsid: ${channelNsid}, hintChannelOwner: ${hintChannelOwner}`); const { data } = await api.getMessages({ channelNsid, ...(hintChannelOwner !== null && { hintChannelOwner }), // Set field only if non-null @@ -34,6 +35,7 @@ const Channel = () => { }); useEffect(() => { if (queryError) { + console.error(`Debug: channelNsid: ${channelNsid}, hintChannelOwner: ${hintChannelOwner}`); console.error(queryError); } }, [queryError]); -- 2.54.0