apollographql / apollographql/apollo-client-integrations

Q. Can we preload multiple queries In RSC using <PreloadQuery>

Open
#498 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
556
Forks
53
PR merge metrics
No merged PRs in 30d

Description

We have next.js web app using Apollo to fetch data and have an use case to prelaod data in our RSC for multiple queries . I see that the documentation has a section on https://github.com/apollographql/apollo-client-integrations/tree/main/packages/nextjs#preloading-data-in-rsc-for-usage-in-client-components .

According to this it takes a single query document . Is there any way we can pass multiple queries as args ?

``` typescript

loading}>

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the packages/nextjs documentation section on preloading data in RSC for usage in client components and inspect the PreloadQuery API described there. Determine whether multiple query documents are supported or what API change would be required; done means the supported usage or limitation is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.