Goal
ใช้ TanStack libraries สำหรับ data fetching, state management, routing, table components, และ form handling
Scope
ใช้สำหรับ TanStack Query, Table, Router, Form, Start, และ Store
Execute
- ติดตั้ง TanStack libraries ตามที่ต้องการ
- อ่าน
guide/installation.mdสำหรับการติดตั้งและ setup - อ่าน
guide/quick-start.mdสำหรับเริ่มต้นใช้งาน - อ่าน
guide/key-concept.mdสำหรับแนวคิดหลัก - อ่าน
guide/how-it-works.mdสำหรับวิธีการทำงาน - อ่าน
key-concepts/query-caching.mdสำหรับ caching - อ่าน
key-concepts/data-synchronization.mdสำหรับ data sync - อ่าน
key-concepts/table-virtualization.mdสำหรับ virtualization - อ่าน
key-concepts/type-safe-routing.mdสำหรับ routing - อ่าน
key-concepts/form-validation.mdสำหรับ validation - อ่าน
guide/features.mdสำหรับ features ที่มี - อ่าน
workflows/use-tanstack-query.mdสำหรับ data fetching - ใช้ caching และ synchronization
- อ่าน
workflows/use-tanstack-table.mdสำหรับ table component - ใช้ sorting, filtering, pagination
- ใช้ virtualization สำหรับ large tables
- อ่าน
guide/configuration.mdสำหรับการตั้งค่า - ใช้ type-safe routing
- ใช้ data loading
- อ่าน
guide/best-practices.mdสำหรับ best practices - อ่าน
guide/integration.mdสำหรับ framework integration - อ่าน
guide/architecture.mdสำหรับ system architecture - อ่าน
guide/structure.mdสำหรับ project structure - อ่าน
guide/troubleshooting.mdสำหรับปัญหาทั่วไป - อ่าน
references/api.mdสำหรับ API reference ทั้งหมด - อ่าน
references/cli.mdสำหรับ CLI commands - อ่าน
references/configuration.mdสำหรับ configuration options - อ่าน
references/website.mdสำหรับ official documentation และ resources
Rules
- ใช้
bun add @tanstack/*สำหรับ installation - ใช้ backticks สำหรับ
useQuery(),useTable(), commands - ใช้ code blocks สำหรับ examples
- ใช้ ansi markdown diagrams สำหรับ flow และ architecture
- ใช้ caching สำหรับ data fetching
- ใช้ type-safe routing เสมอ
- ใช้ proper error handling
- ใช้ virtualization สำหรับ large datasets
Expected Outcome
- Data fetching ที่ efficient ด้วย caching
- Table components ที่ performant ด้วย virtualization
- Routing ที่ type-safe
- Form handling ที่ robust