Replies: 1 comment
|
This is correct and intentional, and it's the same React-level mechanism you already quoted for So without a Given you want exactly that blocking behavior for SEO, you can rely on it, it isn't fragile or unsupported, just undocumented for this specific case. The one thing I'd double check is that you actually want it applied to the whole page rather than a specific section, since omitting |
Uh oh!
There was an error while loading. Please reload this page.
The documentation for using the client-side
UrqlProviderin Next.js only includes an example with<Suspense />However, I was surprised to find that when I removed the
<Suspense />it continued to work. Instead of rendering a suspense fallback and (presumably) streaming in the response, it seemed to block on the request to complete SSR.I could test this by disabling JavaScript on the client side and loading the page. The successfully queried content could be seen rendered in the initial HTML payload.
This seems to behave the same as what's documented for React Query's
useSuspenseQueryimplementation:Is this correct intentional behavior in
urql? Because in our case it is actually desirable due to SEO concerns.All reactions