tanstack-solid

Enforce type-safe routing and reactive data flows in SolidJS applications.

8|Updated Mar 28, 2024
One-click install
npx skills add https://github.com/joncrangle/.dotfiles --skill tanstack-solid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tanstack-solid
Source: https://github.com/joncrangle/.dotfiles/tree/main/dot_config/opencode/skills/tanstack-solid
Command: npx skills add https://github.com/joncrangle/.dotfiles --skill tanstack-solid

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

TanStack Solid provides a cohesive, type-safe approach to building reactive SolidJS apps using the TanStack ecosystem (Start, Query, Router, Table, Form). It addresses the challenge of stitching together routing, data fetching, and state management in a scalable way.

Core Features & Use Cases

  • Type-safe routing and file-based routing with TanStack Router for SolidJS applications.
  • Reactive data flows with TanStack Query and Solid reactivity patterns (getters for options, avoiding destructuring pitfalls).
  • Headless UI patterns for tables and forms using TanStack Table and TanStack Form, enabling flexible UIs across projects.
  • Server function integration using TanStack Start for end-to-end type safety in frontend-backend calls.
  • Use Case: Build a data-heavy admin dashboard with nested routes, server-backed queries, and form data validation.

Quick Start

Start integrating TanStack Solid patterns into your existing SolidJS project to enforce reactivity-first design and type-safe routing.

Frequently Asked Questions about tanstack-solid

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I maintain type safety from routing to server functions in SolidJS?

Maintain type safety from routing to server functions in SolidJS by using TanStack Start server functions instead of API routes. This approach provides end-to-end type safety for frontend-backend calls, ensuring your reactive data flows remain strictly typed.

Why does my TanStack Query data stop updating in SolidJS?

TanStack Query data stops updating when you destructure reactive values. To fix this, use reactive getter-based options for your queries, avoiding destructuring pitfalls and preserving Solid reactivity patterns for reliable UI state management.

What is the best way to build a data-heavy admin dashboard with SolidJS?

Build a data-heavy admin dashboard with SolidJS by combining TanStack Router for nested routes, TanStack Query for server-backed data fetching, and TanStack Table for headless UI patterns, ensuring scalable routing and reactive state management.

Can I use TanStack Form for headless UI validation in a SolidJS project?

Yes, you can use TanStack Form for headless UI validation in SolidJS projects. It enables flexible, headless form data validation patterns across projects, integrating smoothly with Solid reactivity for robust UI state management.

Does TanStack Router support file-based routing for type-safe SolidJS applications?

Yes, TanStack Router supports file-based routing for type-safe SolidJS applications. It provides a cohesive approach to building reactive SolidJS apps, ensuring type-safe routing that scales effectively for complex application structures.