This repository was archived by the owner on Mar 8, 2020. It is now read-only.
This repository was archived by the owner on Mar 8, 2020. It is now read-only.
Integration with _app.js #6
Closed
Description
Hello,
the doc seems to indicate that it's possible to wrap the App (from _app.js) with withUrqlClient if we don't mind losing static optimization, which is my case.
I just tried and I get this error :
Error: ReactDOMServer does not yet support Suspense.
[0] at ReactDOMServerRenderer.read (/home/jgoux/Projects/oss/typezafe/node_modules/react-dom/cjs/react-dom-server.node.development.js:3550:25)
[0] at renderToString (/home/jgoux/Projects/oss/typezafe/node_modules/react-dom/cjs/react-dom-server.node.development.js:4245:27)
[0] at render (/home/jgoux/Projects/oss/typezafe/node_modules/next/dist/next-server/server/render.js:82:16)
[0] at Object.renderPage (/home/jgoux/Projects/oss/typezafe/node_modules/next/dist/next-server/server/render.js:323:20)
[0] at /home/jgoux/Projects/oss/typezafe/.next/server/static/development/pages/_document.js:795:21
[0] at Generator.next (<anonymous>)
[0] at asyncGeneratorStep (/home/jgoux/Projects/oss/typezafe/.next/server/static/development/pages/_document.js:239:24)
[0] at _next (/home/jgoux/Projects/oss/typezafe/.next/server/static/development/pages/_document.js:261:9)
[0] at /home/jgoux/Projects/oss/typezafe/.next/server/static/development/pages/_document.js:268:7
[0] at new Promise (<anonymous>)
[0] at new F (/home/jgoux/Projects/oss/typezafe/node_modules/core-js/library/modules/_export.js:36:28)
[0] at /home/jgoux/Projects/oss/typezafe/.next/server/static/development/pages/_document.js:257:12
[0] at Function.getInitialProps (/home/jgoux/Projects/oss/typezafe/.next/server/static/development/pages/_document.js:805:7)
[0] at Object.loadGetInitialProps (/home/jgoux/Projects/oss/typezafe/node_modules/next/dist/next-server/lib/utils.js:58:29)
[0] at Object.renderToHTML (/home/jgoux/Projects/oss/typezafe/node_modules/next/dist/next-server/server/render.js:328:36)
[0] at runMicrotasks (<anonymous>)
Everything works fine when I wrap my pages instead of _app! 👍
Metadata
Metadata
Assignees
Labels
No labels