adamsoffer / adamsoffer/next-apollo
Multiple queries at the same page
- Vorherrschende Sprache
- TypeScript
- Sterne
- 477
- Forks
- 62
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hello, I have the next problem:
1. Imagine my index page:
```
function IndexPage() {
return (
)
}
```
2. Both Articles and Categories components have react hooks for querying data from GraphQL with SSR.
3. And the problem is that one of these components (random) not waiting for the query's end and I don't see the result data, but loading spinners at the client side.
4. If I remove Articles or Categories component, then I see that querying is being made at SSR always.
5. So the problem is that maybe `getInitialProps` not waiting for all promises and resolves when the first promise resolves.
Can you please answer, is it connected with `next-apollo`?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.