-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix(docs): use hydration utilities from core #2643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/tannerlinsley/react-query/64vHfSzd6sHK2uMmA1WTehusixAR |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d94e41d:
|
|
@Ephem after moving the hydration to the core, what's the preferred way of importing the hydration utils: I guess it's the latter, and we only kept the |
|
@TkDodo according to this, I think yes https://github.com/tannerlinsley/react-query/blob/master/src/hydration/index.ts |
|
Yes, exactly! I was thinking about when would be a good time to update the docs, if we do it right now and people read them but are not on the latest version yet (pretty likely) I thought maybe that would be confusing? On the other hand, maybe we should update them right away to not lead people down a later deprecated track. If we do, should we add a disclaimer about the old way and mention the version it got moved to core maybe? |
yes, that sounds like a good idea. Also, I think this split in the API Reference is now not needed anymore, and probably not a good idea either: I think we should have one page there called |
|
I dont have strong opinions on that really. Either we group them on a single page or just remove the Looks like the rest of the docs under API are atomic, in that every separate function/class has their own page. I guess that makes a function easy to look up, but that should be easy even if they are grouped? 🤷 |
|
yes, the search will work as well if we group it and user headers. for example, not every method of the |
|
Yeah, I agree. I guess technically the queryClient methods are on a class which the hydrate stuff is not, but I don't think that's an important distinction. Makes sense to me to group it. |
|
🎉 This PR is included in version 3.24.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |

No description provided.