adamsoffer / adamsoffer/next-apollo

Hydratation bug with first render

Aperta
#90 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
477
Fork
62
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello,

I have followed the instructions in the readme but my page when it loads does the same query as the ssr page.
However there is the _NEXT_DATA_ with the right data.
My cache is not hydrated, is it possible to have the source code of the demo so that I understand what I did wrong?

also:

In a page contained by WithApollo
```
export default WithApollo( { ssr : true } )( Home );
```

I have as props:
```
(2) [{…}, {…}]
0: {apolloState: {…}, apolloClient: null}
1: {}
```
The apolloState has the right data, how can I pass them to Apollo client ?

Thanks! :).

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.