TLDR Web Dev · ARTICLES & TUTORIALS
SEARCH PARAMS ARE STATE
Summary from the TLDR Web Dev newsletter
This article discusses the common issue of treating URL search parameters as an afterthought in web development, leading to inconsistent data handling and potential bugs. TanStack Router integrates search parameter schemas directly into the routing layer. This allows URL search parameters to be treated as state, making them easily shareable and resistant to reloads. The approach also allows for type-safe validation, inference, and coordination of search parameters across different routes and components.