You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m working with Apollo Client in a Next.js 14 project and trying to prefetch multiple GraphQL queries using PreloadQuery. I want to ensure that this is the correct approach for prefetching multiple queries and handling the data efficiently within the component.
Is this a recommended way to prefetch multiple queries using PreloadQuery?
Are there more efficient or cleaner alternatives for handling multiple queries in this scenario, particularly with regards to code readability and performance?
The text was updated successfully, but these errors were encountered:
The general advice would be to use fragment colocation to compose all your data needs into one query, but if you are using more than one query per router, you're already doing it right.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.
I’m working with Apollo Client in a Next.js 14 project and trying to prefetch multiple GraphQL queries using PreloadQuery. I want to ensure that this is the correct approach for prefetching multiple queries and handling the data efficiently within the component.
Is this a recommended way to prefetch multiple queries using PreloadQuery?
Are there more efficient or cleaner alternatives for handling multiple queries in this scenario, particularly with regards to code readability and performance?
The text was updated successfully, but these errors were encountered: