Skip to content

Commit 2d331eb

Browse files
Added cucstom logger.
1 parent 5d358a6 commit 2d331eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/test-router-transition/providers.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { useRef } from 'react'
44
import { gsap } from 'gsap'
55
import { TransitionRouter } from 'next-transition-router'
6+
import { logger } from '@/lib/logger'
67

78
export function Providers({ children }: { children: React.ReactNode }) {
89
const firstLayer = useRef<HTMLDivElement | null>(null)
@@ -12,7 +13,7 @@ export function Providers({ children }: { children: React.ReactNode }) {
1213
<TransitionRouter
1314
auto={true}
1415
leave={(next, from, to) => {
15-
console.log({ from, to })
16+
logger.info('Router transition:', { from, to })
1617

1718
const tl = gsap
1819
.timeline({

0 commit comments

Comments
 (0)