Martin William
Results
2
comments of
Martin William
I found just separating out the ternary and replacing the `router` uses where the error highlights fixed this : `const router = useRouter();` `const routerMethod = redirectMethod === 'client' ?...
Added a fix for similar error in Navlinks.tsx caused by usePathname being called conditionally