Skip to content

Conversation

@Andrey-Bazhanov
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Sep 7, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tannerlinsley/react-query/64vHfSzd6sHK2uMmA1WTehusixAR
✅ Preview: https://react-query-git-fork-andrey-bazhanov-master-tannerlinsley.vercel.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 7, 2021

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:

Sandbox Source
tannerlinsley/react-query: basic Configuration
tannerlinsley/react-query: basic-typescript Configuration

@TkDodo
Copy link
Collaborator

TkDodo commented Sep 8, 2021

@Ephem after moving the hydration to the core, what's the preferred way of importing the hydration utils:

import { Hydrate } from 'react-query/hydration'
import { Hydrate } from 'react-query'

I guess it's the latter, and we only kept the /hydration imports for backwards compatibility, right?

@Andrey-Bazhanov
Copy link
Contributor Author

@TkDodo according to this, I think yes https://github.com/tannerlinsley/react-query/blob/master/src/hydration/index.ts

@Ephem
Copy link
Collaborator

Ephem commented Sep 8, 2021

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?

@TkDodo
Copy link
Collaborator

TkDodo commented Sep 10, 2021

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:

Screenshot 2021-09-10 at 11 19 43

I think we should have one page there called Hydration that shows the new exports with the disclaimer that old exports still exist. What do you think please?

@Ephem
Copy link
Collaborator

Ephem commented Sep 10, 2021

I dont have strong opinions on that really. Either we group them on a single page or just remove the hydration/-prefix but keep separate pages.

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? 🤷

@TkDodo
Copy link
Collaborator

TkDodo commented Sep 10, 2021

yes, the search will work as well if we group it and user headers. for example, not every method of the queryClient has its own page, so why should hydrate and dehydrate have one 🤷 . So I'm more for the grouping

@Ephem
Copy link
Collaborator

Ephem commented Sep 10, 2021

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.

@Andrey-Bazhanov
Copy link
Contributor Author

@TkDodo @Ephem I grouped hydration pages into single page and put notice about versions. Please take a look.

@TkDodo TkDodo merged commit b88cda4 into TanStack:master Sep 15, 2021
@tannerlinsley
Copy link
Member

🎉 This PR is included in version 3.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants