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): remove next warning, could interfere with useId (#3456)

authored by

Jovi De Croock and committed by
GitHub
993a017b 1d6be509

+1 -30
-5
.changeset/funny-hornets-heal.md
··· 1 - --- 2 - '@urql/next': patch 3 - --- 4 - 5 - Only apply Suspense boundary on the browser
-5
.changeset/small-rings-drop.md
··· 1 - --- 2 - '@urql/next': patch 3 - --- 4 - 5 - Show a warning when the `Suspense` boundary is missing under the UrqlProvider
+1 -20
packages/next-urql/src/Provider.ts
··· 9 9 undefined 10 10 ); 11 11 12 - const SuspenseWarning = () => { 13 - if (process.env.NODE_ENV !== 'production') { 14 - console.warn( 15 - 'urql suspended but there was no boundary to catch it, add a <Suspense> component under your urql Provider.' 16 - ); 17 - } 18 - return null; 19 - }; 20 - 21 12 /** Provider for `@urql/next` during non-rsc interactions. 22 13 * 23 14 * @remarks ··· 68 59 React.createElement( 69 60 SSRContext.Provider, 70 61 { value: ssr }, 71 - React.createElement( 72 - DataHydrationContextProvider, 73 - { nonce }, 74 - typeof window === 'undefined' 75 - ? children 76 - : React.createElement( 77 - React.Suspense, 78 - { fallback: React.createElement(SuspenseWarning) }, 79 - children 80 - ) 81 - ) 62 + React.createElement(DataHydrationContextProvider, { nonce }, children) 82 63 ) 83 64 ); 84 65 }