question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using it with the Appsync client

See original GitHub issue

Hi, I guess it’s just not possible right now, but just to confirm I didn’t do anything wrong:

import { ApolloProvider } from "react-apollo-hooks";
import { Rehydrated } from "aws-appsync-react";
import appsyncClient from "./appsyncClient";

<ApolloProvider client={appsyncClient}>
    <Rehydrated>
      <App />
    </Rehydrated>
</ApolloProvider>

throws the following error:

Unhandled Rejection (TypeError): Cannot read property ‘hydrated’ of undefined

If I use the ApolloProvider from react-apollo, it works fine. I don’t know how difficult it would be to add support for it.

Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16

github_iconTop GitHub Comments

12reactions
KosGrilliscommented, Aug 19, 2019

This seems to be broken again with latest versions. Anyone else facing similar issue? I am getting error - "Warning: Failed context type: The context client is marked as required in Rehydrated, but its value is undefined. "

I’m facing the same issue after upgrading to react-apollo 3.0.1

8reactions
jcwrightsoncommented, Aug 20, 2019

Can we reopen this issue? @cuttlas wrapping the providers does not seem to fix the issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building a client application - AWS AppSync
To start using AWS AppSync in your JavaScript or Flow application, first add your GraphQL schema to your project. ... You need to...
Read more >
Using AppSync Client from Lambda - Edward Beazer Blog
Access your Amplify generated AppSync GraphlQL API from a lambda.
Read more >
appsync-client - npm
A lightweight Appsync client that signs requests for you - designed to be run server-side (e.g. on Lambdas).. Latest version: 2.15.0, ...
Read more >
Build AWS AppSync API and API Client using Python - YouTube
The workshop URL - https://aws-dojo.com/workshoplists/workshoplist20AWS AppSync is used to create GraphQL APIs. The APIs can securely access ...
Read more >
GraphQL APIs with AppSync, Amplify and Angular - YouTube
AWS AppSync automatically updates the data in web and mobile applications in real time, and updates data for offline users as soon as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found