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
-
Hello guys.
My backend is written in graphql. I have type called
Organization
which is something like this:I want to fetch
Organization
in the react server component in one single query and includesstaffs
andproducts
.I have two questions:
products
andstaffs
inOrganization
into 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.categories
exists in the store then I should not re-fetch the categories on the server side.Beta Was this translation helpful? Give feedback.
All reactions