6
minutes
Andre de Waard

How TanStack Router, TanStack Query, and ShadCN speed up our development

When building data-heavy dashboards, efficiency is key. We used to spend a lot of time managing routing, data fetching, and UI components, but with the help of TanStack Router, TanStack Query, and ShadCN, we've drastically sped up our development process.

These tools simplify complex tasks, improve performance, and allow us to focus more on what matters: delivering powerful features for our users. Here's how each one has made a huge difference in our workflow.

01
How we build this: Agnostic-database system

One of the trickiest problems we tackled during a development process was building a database-agnostic system.

TanStack: Empowering Modern Routing and Data Handling

TanStack Router and TanStack Query work seamlessly to simplify routing and data management in modern applications. TanStack Router makes navigation intuitive with features like autocomplete for route paths, reducing errors and speeding up development. Its support for typesafe search parameters ensures filters, such as date ranges or user-specific data, always match expected types, minimizing bugs. Additionally, prefetching data before page transitions enhances responsiveness, while middleware streamlines workflows by enabling pre-route logic like authentication checks. 

On the other hand, TanStack Query revolutionizes data handling with automatic caching to eliminate redundant API calls, improving performance and reducing load times. Optimistic updates deliver a snappy user experience by instantly reflecting changes in the UI, and automatic data invalidation keeps information accurate after mutations. Together, these tools ensure faster, more reliable, and user-friendly applications.

ShadCN: Faster UI Development with Built-In Accessibility

ShadCN has been a huge time-saver when it comes to UI development. Instead of spending time building and styling basic components like tables, buttons, and forms, we can simply drop in ShadCN's pre-built, accessible components and customize them to fit our needs. This has reduced our development time significantly, letting us focus more on building core features rather than repetitive UI code.

Another major advantage of ShadCN is its built-in accessibility. Accessibility features like keyboard navigation, screen reader support, and color contrast are already handled for us, meaning we don’t have to manually implement them for every component. This makes the app more inclusive and saves us time on testing and adjustments.

Since ShadCN is built on Tailwind CSS, it’s highly flexible. We can easily tweak the design of components to match our unique requirements without writing custom CSS or dealing with complicated styling logic. The combination of speed, accessibility, and flexibility has made ShadCN an indispensable part of our workflow.

Conclusion

By incorporating TanStack Router, TanStack Query, and ShadCN into our development process, we've been able to build dashboards faster, with fewer bugs and better performance. TanStack Router’s seamless routing and prefetching, TanStack Query’s caching and automatic data invalidation, and ShadCN’s quick, accessible UI components have all contributed to a smoother, more efficient workflow. These tools have allowed us to focus more on delivering valuable features, rather than getting bogged down in repetitive tasks. If you’re building data-heavy dashboards, we highly recommend giving them a try—they’ve made a world of difference for us.

Andre de Waard
Head of User Interfacing
current