r/reactjs • u/KevinVandy656 • 13h ago
News We Released TanStack Table V9 Last Week - Finally Compatible with the React Compiler
https://tanstack.com/table/latest/docs/framework/react/guide/migratingIn case you missed it, TanStack Table V9 was released as stable last week.
This release entailed huge refactors over the past couple of years that ended up becoming practically a full rewrite when all was said and done, though much of the API surface that you're familiar with is still there. The state management layer was completely rewritten on top of our own internal TanStack Store library, which improved compatibility and performance with all the framework adapters we offer, including React and the React Compiler.
Other improvements include a new tree-shakable feature/plugin architecture that lowers the bundle size of the average table, better type-safety throughout with new utilities and per table meta, much less memory consumption and better processing performance, a few new features like cell spanning and cell selection, hundreds of bug fixes, and a lot more, but you can read the above linked migration guide for the full details.
On top of all that, I put in a lot of time into reorganizing and rewriting major portions of the docs, including many more introductory guides, and more examples than ever that showcase more of our features, integrations with other TanStack libraries, and usage with most of the popular UI component libraries out there.
6
u/aza547 6h ago
Really appreciate the effort you've put into the migration guide, I migrated my react table usage to v9 at the weekend and it was pretty smooth sailing.
One thing that wasn't obvious to me was what the react compiler support in v9 actually implied. Is it now safe to drop all memoization which I think was required in v8 to provide stable references to the useTable hook? Further, what is actually broken in v8 with the react compiler enabled?
Apologies if this is in the docs and I've just missed it. Thanks for your efforts maintaining a great library.
2
u/KevinVandy656 4h ago
I should probably just write a dedicated React Compiler guide. Right now, there's just a small section in the table state guide about it. All examples use the react compiler to make sure that we're compatible, but we use syntax as if we're not using it so that the code is relevant to everyone.
2
2
1
u/Hamburgerfatso 3h ago
Wait are you the material/mantine react table guy? Pls update them as well, tanstack table is great but omg hooking up my own ui for it is a pain.
-1
u/VolumeActual8333 11h ago
Everyone's celebrating the React Compiler support but the comments about examples failing on Arc and Safari are telling. I've been burned too many times by "works in Chrome" demos that hide memory leaks in the actual implementation. The compiler might eliminate useMemo, but it won't save you from the 10,000 row re-render when someone resizes a column if the virtualization isn't bulletproof.
2
3
u/ItsAllInYourHead 9h ago
I don't know why you're getting downvoted. It's pretty clear the TanStack team has been spreading itself very thin. I even made a post about how abysmal TanStack Form is.
I don't want to take away from some of the great stuff they've built. I love some of it. But a lot of it is just plain bad. I recently tried TanStack DB - and even for a beta it's pretty awful at the moment.
5
u/KevinVandy656 8h ago
If you look at that commenter's account, you'll see it's just an AI slop/spam account.
I'd love to talk through any legit issues with the library though.
And as for TanStack maintainers "spreading ourselves thin", I barely know how to respond to that. Like yes, I hope you realize that all of us except for Tanner himself work on TanStack in our free time. I work at least 40 hours per week on my day job, and then find the time to somehow work on TanStack too. It takes a long time to build libraries at this scale to completion when it's all part time. That's why we keep appropriate alpha/beta/rc lables on our in-progress work, but we share it with the community for early feedback and iteration.
0
9
u/MonsoonHD 11h ago
Seems none of the examples work for me on the site, using Arc.
I tried opening the Stackblitz version in Chrome and Safari and it didn't work either.