JavaScript Jabber cover image

TanStack Router with Tanner Linsley - JSJ 578

JavaScript Jabber

00:00

JavaScript JSON Validation in Tansack Router

Tansack router uses zod, but you could use really whatever you wanted as a validation library. Zod's great because it validates and it type checks and casts it correctly. As that string comes out of Tansack router, it's being parsed, fed through your validators, hopefully through something like zod,. pops out the other end as a fully validated and fully typed data structure. You have to be able to parse that and run it through functions and upgrade it. For now, the best place to do search peram redirection is technically in the client. But we're working on that as well, right?

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app