Dehydrating a big query into separate keys #7308
Unanswered
shahinghasemi
asked this question in
General
Replies: 1 comment
-
|
Any idea is appreciated @TkDodo @DamianOsipiuk @niels-bosman |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys.
My backend is written in graphql. I have type called
Organizationwhich is something like this:I want to fetch
Organizationin the react server component in one single query and includesstaffsandproducts.I have two questions:
productsandstaffsinOrganizationinto separate keys ? Because these data are going to be used in different places so I don't want to re-fetch them again. I want to use the cache instead of separate network call in client side.categoriesexists in the store then I should not re-fetch the categories on the server side.Beta Was this translation helpful? Give feedback.
All reactions