T
TanStack15mo ago
genetic-orange

Type validating arbitrary strings against router types

Hello, When I have a user sign in, I send them to third party url to login. I am storing the current path in local storage then when they are redirected back I am reading the path and redirecting in the beforeLoad API. What interface should I be using from tanstack/router to appropriately zod validate that a string satisfies my route types? Thank you!
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?