TanStackT
TanStack3mo ago
6 replies
dead-brown

typesafe pathname?

Hi why useLocation().pathname is a string? Why can't codegen get the type properly? What other function gives me typed all possible pathnames?
Was this page helpful?