-
Notifications
You must be signed in to change notification settings - Fork 7
Integration with _app.js #6
Comments
🤔 Hmmm interesting. I'll spin up a CodeSandbox using |
Same issue. @parkerziegler You need download it from |
If we upgrades
|
@nghiepit yep I can repro the above. I've hit this same error before, but I can't quite remember what the fix was. Doing some more digging now. Thanks all for being patient, I've had other things on my plate recently but I hope to be able to figure this out now with some dedicated time for it. |
So some progress! After digging around in operation {
key: 2072880159,
query: {
kind: 'Document',
definitions: [ [Object] ],
loc: { start: 0, end: 190 },
__key: 407398015 },
variables: { first: 20 },
operationName: 'query',
context: {
url: undefined, // Yikes, this is coming in as undefined.
fetchOptions: undefined,
fetch: undefined,
requestPolicy: 'cache-first',
pollInterval: undefined,
meta: {
cacheOutcome: 'miss'
}
}
} I'm not positive why that it is. I'll do a little more digging and consult with some folks here, since this seems like pretty strange behavior. |
this also happens to me with the nextjs example from the urql repo |
Yeah, I'm thinking there may be some discrepancies between how Next handles |
Should be released in v0.2.3. Let me know if you're still experiencing issues 😄 Cheers! |
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 :
Everything works fine when I wrap my pages instead of _app! 👍
The text was updated successfully, but these errors were encountered: