Replies: 1 comment 4 replies
-
pre-filling a query with data from another query by using the initialData function and accessing the data via I'm not quite sure what is not working in your example. Where is the queryClient coming from, are you using next step would be a runnable codesandbox example to see what is not working :) |
Beta Was this translation helpful? Give feedback.
4 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,
I'm new to React Query and I'm trying to decide if it's the correct API client to use in my application. In my app, I use a lot of pagination. I understand that when a normal query, without pagination, is made, it's temporarily stored in the cache. I can then make a query with the
initialData
property pointing at the previously made query to maximize efficiency (assuming that I know the data lives there). This makes sense to me and I successfully got it to work. I have not gotten it to work when the initial query involves pagination. Is this possible?For example:
I'm using the devtools so I know that the data I want to access lives in the cache, but I'm assuming I'm incorrect in how I'm using the query's key.
Beta Was this translation helpful? Give feedback.
All reactions