Skip to content

Conversation

@ryands17
Copy link
Owner

No description provided.

Clayton Marshall and others added 30 commits August 26, 2020 17:14
…in the detailed walkthough of useQuery (#928)

Co-authored-by: Clayton Marshall <[email protected]>
* chore(hydration): set up separate hydration entry point

* feat(hydration): add support for de/rehydrating queryCaches

- Add dehydrate(queryCache, config)
- Add hydrate(queryCache, dehydratedQueries, config)
- Add useHydrate(dehydratedQueries, config)

* test(hydration): fix broken type in test

* rename scheduleTimeoutsManually to activateTimeoutsManually

* docs(hydration): add API-docs for hydration and update comparison

* docs(ssr): update ssr-docs with new approach based on de/rehydration

* remove activateTimeoutsManually

* add default shouldDehydrate

* add hydration/ReactQueryCacheProvider

* use unknown for initialData in dehydration

* rename initialQueries  and dehydratedQueries to dehydratedState

* include queryKey instead of queryHash in dehydration

* update initialQueries to dehydratedState in ssr guide docs

* remove shouldHydrate-option
Separate the sentences based on contex
tannerlinsley and others added 29 commits September 16, 2020 15:05
Removed storing the return value of `queryCache.removeQueries` as it doesn't return anything.
@ryands17 ryands17 merged commit 4dca773 into ryands17:master Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.