TanStack in SvelteKit: Examples for Query and Table
summary
Uses TanStack Query and Table inside SvelteKit to fetch BlueSky data via the app protocol agent, demonstrates single queries, create infinite query with cursor-based paging and a select that flattens pages, and shows reactive searches using debounce from rune.dev. Builds a headless table with column helpers, custom cell components, sorting (datetime and alphanumeric) and a global filter updated via an effect with untrack. Notes the official Svelte table errors and uses Simon’s test-table v8 as a working drop-in.
AI-written summary · about
chapters (15)
- 0:00Introduction to talk
- 2:12What is TanStack
- 3:38Setting up Query client
- 5:01Basic query example
- 7:10Reactive queries with input
- 9:00Infinite queries for feeds
- 11:49Introduction to TanStack Table
- 13:19Fetching data for table
- 14:03Creating table columns
- 16:33Rendering table data
- 17:17Custom cell components
- 19:23Sorting table data
- 22:14Filtering table data
- 23:57Full demo walkthrough
- 27:11Summary and resources
