Change usePathname
to return string | null
#42380
Merged
usePathname
to return string | null
#42380