urql-graphql / urql

The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
https://urql.dev/goto/docs
MIT License
8.57k stars 444 forks source link

docs(next): Enable suspense in non-rsc example #3364

Closed spiceee closed 11 months ago

spiceee commented 11 months ago

Summary

The non-rsc example is missing the suspense: true argument, so the query never runs on the server like the copy suggests.

Set of changes

Just enabling suspense in the docs, like it's done in the Next non-rsc example in https://github.com/urql-graphql/urql/blob/main/examples/with-next/app/non-rsc/layout.tsx