r/reactjs • • 13d ago

Resource 🗺️ Roadmap to Query v6 · TanStack query · Discussion #12669

https://github.com/TanStack/query/discussions/12669

📢 Please don’t get excited, but we’ve started working on TanStack Query v6. We’ll break things, but not too many.

Feedback appreciated 🙏

106 Upvotes

20 comments sorted by

View all comments

3

u/sondr3_ 12d ago

This goes for most of the TanStack stuff, but I feel like the docs are slowly deteriorating and it's frustrating how much stuff I have to find in GitHub Discussions or in external blog posts instead of in the docs themselves. Router and Table is in my experience by far the worst, but Query is starting to have the same problems where the guides feel more like API reference docs with notes and are becoming very prescriptive, which makes it really hard to find solutions to things that are just barely off the happy path.

1

u/TkDodo23 12d ago

The only thing we've really changed lately is the API reference docs, as they are now exclusively generated from jsdoc comments in code. Users have wanted better jsdoc comments for a long time but keeping multiple sources of truth wasn't desirable. Format has changed and it might not be "better" than before because of all the cross references but we believe it's worth it and we're also working on making the generation better.

The guides I don't understand. They literally haven't changed in years. I wanted to re-structure them but never got around to doing it so really not sure what you're referring to but happy to improve if you have concrete feedback. PRs to the docs are also always welcome.

The thing with the docs is that they are mostly unbiased. They tell you what you can do. I can't (or rather won't) put my personal preferences in docs. That's why I have my blog. This has always been the case.

We will follow this up with skills and they will likely be more opinionated as you can't just tell agents to do what they want, this needs more bias.

But if I tell you, in the docs, that you should be e.g. using suspense queries, error boundaries, route loaders for prefetching and that you probably shouldn't use TanStack Query if you're using nextJs theRightWay™ I'm pretty sure I'd get a lot of negative feedback 😅.

2

u/sondr3_ 12d ago

As mentioned, Query has pretty good docs, the others... not so much. I would love if docs were more opinionated about things, docs should not just be an overview over all the things you can do but how to do them properly, what to avoid and so on. I've had to point my entire team to your blog for many different topics like query invalidation, query keys or integrating with Router that are in the docs but leave it up to the user to figure out how to use it... which leads to badly engineered solutions.