From 6b7e524b3e55fd5f37d6b1949bf2d57e30152a90 Mon Sep 17 00:00:00 2001 From: Muttakin Islam Hasib Date: Wed, 13 Dec 2023 18:26:55 +0600 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=9B=A0=EF=B8=8F=20=20testing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../(account)/dashboard/address-book/page.tsx | 20 +++++++++---------- apps/web/src/app/(account)/layout.tsx | 20 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/apps/web/src/app/(account)/dashboard/address-book/page.tsx b/apps/web/src/app/(account)/dashboard/address-book/page.tsx index 1995834..5828d36 100644 --- a/apps/web/src/app/(account)/dashboard/address-book/page.tsx +++ b/apps/web/src/app/(account)/dashboard/address-book/page.tsx @@ -7,17 +7,17 @@ export const metadata = { }; const AddressBookPage = async () => { - const cookie = getCookieString('connect.sid'); - const queryClient = new QueryClient(); + // const cookie = getCookieString('connect.sid'); + // const queryClient = new QueryClient(); - await queryClient.prefetchQuery({ - queryKey: ['addresses'], - queryFn: async () => - await fetch(`${baseURL}${ADDRESSES_ROUTE}`, { - credentials: 'include', - headers: { cookie }, - }), - }); + // await queryClient.prefetchQuery({ + // queryKey: ['addresses'], + // queryFn: async () => + // await fetch(`${baseURL}${ADDRESSES_ROUTE}`, { + // credentials: 'include', + // headers: { cookie }, + // }), + // }); return ; }; diff --git a/apps/web/src/app/(account)/layout.tsx b/apps/web/src/app/(account)/layout.tsx index 67943ca..d4823dc 100644 --- a/apps/web/src/app/(account)/layout.tsx +++ b/apps/web/src/app/(account)/layout.tsx @@ -4,17 +4,17 @@ import { QueryClient } from '@tanstack/react-query'; import React, { PropsWithChildren } from 'react'; const AccountLayout = async (props: PropsWithChildren) => { - const cookie = getCookieString('connect.sid'); - const queryClient = new QueryClient(); + // const cookie = getCookieString('connect.sid'); + // const queryClient = new QueryClient(); - await queryClient.prefetchQuery({ - queryKey: ['me'], - queryFn: async () => - await fetch(`${baseURL}/users/me`, { - credentials: 'include', - headers: { cookie }, - }), - }); + // await queryClient.prefetchQuery({ + // queryKey: ['me'], + // queryFn: async () => + // await fetch(`${baseURL}/users/me`, { + // credentials: 'include', + // headers: { cookie }, + // }), + // }); return (