We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d358a6 commit 2d331ebCopy full SHA for 2d331eb
src/app/test-router-transition/providers.tsx
@@ -3,6 +3,7 @@
3
import { useRef } from 'react'
4
import { gsap } from 'gsap'
5
import { TransitionRouter } from 'next-transition-router'
6
+import { logger } from '@/lib/logger'
7
8
export function Providers({ children }: { children: React.ReactNode }) {
9
const firstLayer = useRef<HTMLDivElement | null>(null)
@@ -12,7 +13,7 @@ export function Providers({ children }: { children: React.ReactNode }) {
12
13
<TransitionRouter
14
auto={true}
15
leave={(next, from, to) => {
- console.log({ from, to })
16
+ logger.info('Router transition:', { from, to })
17
18
const tl = gsap
19
.timeline({
0 commit comments