TanStackT
TanStack12mo ago
6 replies
living-lavender

how to navigate to dynamic route using hard-coded path?

This is the route blogs/$id and I wanna navigate to /blogs/1

when I did this navigate({ to: '/blogs/1',}); I get error

Type '"/blogs/1"' is not assignable to type '"/" | "." | ".." | "/about" | "/blog/$blogId" | "/blogs/$id"'.
Was this page helpful?