nunomaduro Β· Video summary
π΄ Learning TanStack
Learn TanStack, a full-stack JavaScript framework with file-based routing, server functions, and state management for building modern UIs.
Watch on YouTube βKey takeaways
- π‘TanStack Router provides type-safe routes, data loading, and search param validation, enabling a shift from traditional backend controllers to API-driven approaches.00:15
- π―TanStack is a collection of framework-agnostic libraries for building modern UIs, offering a full-stack solution with components like router, query, and table.00:46
- πTanStack Query, formerly React Query, acts as a smart HTTP client for handling server state in React, offering automatic caching, background refetching, and optimistic updates.00:51
- πExplore TanStack's file-based routing by creating new files in the `routes` directory to define new pages and URLs.19:37
- πTanStack features file-based routing where routes are defined by file structure, simplifying URL management and component mapping, similar to frameworks like Next.js.20:21
- πTanStack Table is a headless UI library for data grids, handling complex logic like sorting, filtering, and pagination, allowing for custom styling.24:37
Chapters
- 0:04π― Introduction and Initial Thoughts
- 6:47π― Exploring What TanStack Is
- 11:46π― Creating a New TanStack Project
- 26:40π― Implementing File-based Routing
- 36:23π― Fetching and Displaying Data
- 1:01:28π― Handling Validation and Errors
- 1:11:48π― Authentication and Route Guards
- 1:26:03π― Understanding TanStack Components
- 1:33:38π― Comparing Client-side and SSR Data Loading
- 1:34:40π― Using TanStack Query for Frontend Data Fetching
- 1:48:36π― Organizational Tips and Framework Opinions
- 1:54:31π― Final Reflections and Wrap-up
The digest
High-Level Overview
This detailed exploration documents a live learning session with TanStack, a modern collection of JavaScript libraries and a full-stack framework gaining traction in the web development community. The session covers initial impressions, core features such as file-based routing, server functions, client-side caching, authentication, and UI components like data tables. It also contrasts TanStackβs architecture and workflows with Laravelβs established patterns, highlighting challenges and opportunities for developers familiar with PHP backends. The walk-through serves developers and architects seeking to understand how TanStack can fit into modern full-stack JavaScript development, particularly for those transitioning from Laravel or looking to integrate both ecosystems.
Keep reading in The Digest
The full 6-minute article, 14 more sections, and every new episode from nunomaduro and the creators you follow.
- Understanding TanStack: Introduction and Context
- Core Components and Features Explored
- 1. File-Based Routing (00:20β22:00)
- 2. Server Functions and Backend Code Organization (37:00β44:00)
- 3. Data Fetching with TanStack Query (06:50β09:40, 1:33:00 onwards)
- 4. Authentication and Middleware Patterns (52:00β1:17:40)
- 5. The Table Component β TanStack Table (1:21:00β1:29:00)
- 6. Development Experience & Integration with Editor Tools
- Key Frameworks and Concepts from TanStack
- Framework Summary:
- Middleware Concept:
- Validation Workflow:
- Practical Implications & Takeaways
- Action-Oriented Summary
More from nunomaduro
π΄ JetBrains Air: Agentic Development
Explore JetBrains Air, an AI-powered coding editor, and its agentic development capabilities, contrasting it with other AI tools and discussing its potential for future development.
π΄ Aaron Francis & Ian Landsman: AI, Agentic Coding & The Future of Dev
Developers Aaron Francis & Ian Landsman discuss AI's impact on software engineering, agentic coding, and the evolving developer role.
π΄ Open Source Dev Stream: New PR, Pint Features & More
Nuno Maduro demos new open source features for Laravel, including auto-import, comment removal, and a sluggable attribute, plus a new image optimization API.
π΄ Trying Theo's AI T3 Code and Codex & Reacting to: I Was a 10x Engineer.. Now Iβm Useless!
AI coding tools like Codex are changing development, but human oversight and broader skills are crucial for effective software engineering.