79340049

Date: 2025-01-08 16:39:21
Score: 1
Natty:
Report link

In nextjs, pathname is not an object

Change

const { pathname } = usePathname();

To

const pathname = usePathname();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user19259811