Skip to content

Commit

Permalink
chore: add console
Browse files Browse the repository at this point in the history
  • Loading branch information
jw-r committed Dec 3, 2024
1 parent bcff1c8 commit 6305b03
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/(routes)/document/[id]/(main)/@header/default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@ import { useDeleteDocument } from '@/requests/document/hooks'

// Header 컴포넌트
const Header = () => {
console.log('header 1')
const router = useRouter()
console.log('header 2')
const { id } = useParams()
console.log('header 3')
const { getPreviousPath } = usePreviousPath({ getCustomPath: true })
console.log('header 4')
const { data } = useQuery(queries.document.item(Number(id)))
console.log('header 5')
const { mutate: deleteDocumentMutation } = useDeleteDocument()
console.log('header 6')

const handleClickCancel = () => {
const previousPath = getPreviousPath()
Expand All @@ -44,7 +50,7 @@ const Header = () => {
onSuccess: () => router.push('/document'),
})
}

console.log('header 7')
return (
<>
<header>
Expand Down
1 change: 1 addition & 0 deletions src/app/(routes)/document/[id]/(main)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ interface LayoutProps extends PropsWithChildren {
}

const Layout: FunctionComponent<LayoutProps> = ({ header, children }) => {
console.log('Layout 1')
return (
<DirectoryProvider>
<DocumentProvider>
Expand Down
1 change: 1 addition & 0 deletions src/firebase/messaging/use-service-worker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { useEffect } from 'react'

export const useServiceWorker = () => {
console.log('useServiceWorker 1')
useEffect(() => {
if ('serviceWorker' in navigator) {
navigator.serviceWorker
Expand Down
1 change: 1 addition & 0 deletions src/shared/hooks/use-messaging.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useEffect } from 'react'
import { usePostFcmToken } from '@/requests/fcm/hooks'

export const useMessaging = () => {
console.log('useMessaging 1')
useServiceWorker()
const { mutate: postFcmTokenMutate } = usePostFcmToken()

Expand Down

0 comments on commit 6305b03

Please sign in to comment.