How to use suspense with urql? #1651
-
Hi, i've followed a lot of github issues, PRs, npm packages, etc that all seem to indicate that suspense support is now part of the urql library, but I haven't found a good explanation of how to use it. Is this documented anywhere? |
Beta Was this translation helpful? Give feedback.
Answered by
JoviDeCroock
May 18, 2021
Replies: 1 comment 2 replies
-
The usage on the client is pretty in line with the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
quinn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The usage on the client is pretty in line with the
lazy
concept. You initialize the Client with suspense: true and it will throw up to Suspense boundaries. In ssr you'll need to use a tool like react-ssr-prepass as Suspense on the server isn't supported in React yet.SSR docs