Refactored app.js and index.js to follow hasura examples of managing state. Now using hooks for user auth and only user auth.

This commit is contained in:
Patrick Fic
2019-12-05 21:03:40 -08:00
parent b44714eb59
commit 2842af38b7
23 changed files with 696 additions and 554 deletions

View File

@@ -8,13 +8,14 @@ import { InMemoryCache } from "apollo-cache-inmemory";
import { ApolloClient } from "apollo-boost";
import { typeDefs, resolvers } from "./graphql/resolvers";
import initialState from "./graphql/initial-state";
// require('dotenv').config()
import * as serviceWorker from "./serviceWorker";
import "./index.css";
import { default as App } from "./App/App.container";
require("dotenv").config();
const httpLink = createHttpLink({
uri: "https://bodyshop-dev-db.herokuapp.com/v1/graphql"
});