Replies: 1 comment
-
you can just use
no additional state is needed with select |
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.
-
I have a dynamic query (using search params) like:
Lets assume that the data returned from this endpoint like:
I have been trying to figure out a way to memoize / store in state the static data returned from this query (this static data will never change as the result of query parameters). The reason for doing this is I want to prevent rerendering of the components that use this data on one of my pages. I realize I could fix this all together by simply making two API queries but wanted to see if this is possible from a single API query.
So far I have tried both:
Basically, I am asking is what I am trying to do even possible or should I just stick to two separate queries.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions