JavaScript Jabber cover image

TanStack Router with Tanner Linsley - JSJ 578

JavaScript Jabber

CHAPTER

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?

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner