query icon indicating copy to clipboard operation
query copied to clipboard

Rename `Hydrate` to `HydrationBoundary`

Open TkDodo opened this issue 2 years ago • 2 comments

and remove useHydrate hook

TkDodo avatar Dec 23 '22 07:12 TkDodo

Should the useHydrate hook be replaced with anything or just completely removed?

ghost avatar Dec 24 '22 16:12 ghost

Should the useHydrate hook be replaced with anything or just completely removed?

It can be removed

TkDodo avatar Dec 24 '22 18:12 TkDodo

Hey @TkDodo I would like to contribute to this issue and write the codemod for it

prateek3255 avatar Jan 12 '23 17:01 prateek3255

perfect, it's yours

TkDodo avatar Jan 12 '23 19:01 TkDodo

@prateek3255 please wait with the code-mod until we have the setup in place, see:

  • https://github.com/TanStack/query/issues/4705#issuecomment-1385437601

we'll probably create separate code-mod issues then for each one.

TkDodo avatar Jan 17 '23 13:01 TkDodo

Hey, I think you should update the documentation here: <Hydrate state={dehydratedState}>

0xbuidler avatar Jan 19 '24 16:01 0xbuidler

you're looking at v4 docs, the rename happened in v5

TkDodo avatar Jan 19 '24 16:01 TkDodo

My bad, thanks dude 👍

0xbuidler avatar Jan 19 '24 16:01 0xbuidler