Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Should you include <Rehydrated> ? #2

Open
JuanmaMenendez opened this issue Feb 19, 2020 · 2 comments
Open

Should you include <Rehydrated> ? #2

JuanmaMenendez opened this issue Feb 19, 2020 · 2 comments

Comments

@JuanmaMenendez
Copy link

...
import { Rehydrated } from 'aws-appsync-react' // this needs to also be installed when working with React

...

const WithProvider = () => (
  <ApolloProvider client={client}>
    <Rehydrated>
      <App />
    </Rehydrated>
  </ApolloProvider>

The documentation says it needs to be used when we are working with ReactJS https://github.com/awslabs/aws-mobile-appsync-sdk-js#readme

@JuanmaMenendez JuanmaMenendez changed the title Does not you should include <Rehydrated> ? Should you include <Rehydrated> ? Feb 19, 2020
@wolfeidau
Copy link
Owner

My understanding is that Rehydrated was not required when using just the links, I need to investigate this code.

I have not seen any issues without it.

@JuanmaMenendez
Copy link
Author

some reference aws-amplify/docs#281.

Maybe it will affect the use of Apollo Cache?

Also, will be great if you include an example of a Mutation in your repo and also put an online version in order the people could see it works. I think you are doing a great job here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants