jaydenseric / graphql-react

A GraphQL client for React using modern context and hooks APIs that is lightweight (< 4 kB) but powerful; the first Relay and Apollo alternative with server side rendering.
https://npm.im/graphql-react
MIT License
717 stars 22 forks source link

Suspense mode ? #29

Closed revskill10 closed 5 years ago

revskill10 commented 5 years ago

It would be useful if we could enable suspense:true option , so that the library is compatible with future SSR Suspense release.

jaydenseric commented 5 years ago

My preference is to wait for the stable release of the official React Suspense APIs. Depending on what the final APIs looks like, we might be able to get rid of the ssr() function and redo the way loading and perhaps even cache works.

We can cross that bridge when the time comes.