usePathname() returning null AND useRouter() causing "Error: NextRouter not mounted" and "Error: invariant expected app router to be mounted" errors
usePathname() returning null AND useRouter() causing "Error: NextRouter not mounted" and "Error: invariant expected app router to be mounted" errors

