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:
@@ -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"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user