Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(next): only inject `<Suspense` and warning during client-side rendering (#3454)

authored by

Jovi De Croock and committed by
GitHub
765bae94 fa692c1c

+12 -5
+5
.changeset/funny-hornets-heal.md
··· 1 + --- 2 + '@urql/next': patch 3 + --- 4 + 5 + Only apply Suspense boundary on the browser
+7 -5
packages/next-urql/src/Provider.ts
··· 71 71 React.createElement( 72 72 DataHydrationContextProvider, 73 73 { nonce }, 74 - React.createElement( 75 - React.Suspense, 76 - { fallback: React.createElement(SuspenseWarning) }, 77 - children 78 - ) 74 + typeof window === 'undefined' 75 + ? children 76 + : React.createElement( 77 + React.Suspense, 78 + { fallback: React.createElement(SuspenseWarning) }, 79 + children 80 + ) 79 81 ) 80 82 ) 81 83 );