adamsoffer / adamsoffer/next-apollo
Multiple queries at the same page
- Lingua principale
- TypeScript
- Stelle
- 477
- Fork
- 62
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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`?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.