Custom setup v8 in Svelte 5 (or just wait for v9)?
Tanstack installation docs:
https://tanstack.com/table/latest/docs/installation
NOTE: There is not a built-in Svelte 5 adapter yet, but you can still use TanStack Table with Svelte 5 by installing the @tanstack/table-core package and using a custom adapter from the community. See this PR for inspiration.The PR mentioned then points to this excellent set of examples by walker-tx: https://github.com/walker-tx/svelte5-tanstack-table-reference/tree/main/src/routes/examples Looking around the examples, they seem quite involved with a large number of additional component files and table files needed. I'm a but unsure if I should jump into copying them all into my own projects or if it's better to just wait for v9? My concern is that it might make the transition to v9 later much more complicated having a lot of custom code written that I don't understand well? Is this a relevant concern or is it more likely I can just remove those files when I don't need them and "plug in" v9 as needed?
Installation | TanStack Table Docs
Before we dig in to the API, let's get you set up! Install your table adapter as a dependency using your favorite npm package manager. Only install ONE of the following packages: React Table bash npm...
GitHub
svelte5-tanstack-table-reference/src/routes/examples at main · wal...
A reference for using Svelte 5 with TanStack Table v8 - walker-tx/svelte5-tanstack-table-reference
1 Reply
adverse-sapphireOP•5mo ago
In the end I did it this way:
https://jamesoclaire.com/2025/04/09/easiest-way-to-get-tanstack-table-v8-working-with-svelte-5/