Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
praisegeek committed Feb 25, 2020
1 parent 54f0b91 commit 0165c22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ node_modules
public
.cache
.env
.env.*
.env.*
yarn.lock
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ node_modules
public
.cache
.env
.env.*
.env.*
yarn.lock
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const client = clientTypes[clientVersion] || clientTypes["LEGACY"];
export const withAppSync = WrappedComponent => {
if (clientVersion === "LEGACY") {
const { ApolloProvider } = require("react-apollo-legacy");
const Rehydrated = require("./src/rehydrate").default;
const Rehydrated = require("./src/Rehydrate").default;
return class extends React.Component {
render() {
return (
Expand Down Expand Up @@ -138,7 +138,7 @@ export const AppSyncProvider = ({ options, ...props }) => {

if (clientVersion === "LEGACY") {
const { ApolloProvider } = require("react-apollo-legacy");
const Rehydrated = require("./src/rehydrate").default;
const Rehydrated = require("./src/Rehydrate").default;
return (
<ApolloProvider client={client}>
<Rehydrated>{props.children}</Rehydrated>
Expand Down

0 comments on commit 0165c22

Please sign in to comment.