Refactor app.container to load current user.
This commit is contained in:
@@ -7,25 +7,12 @@ import * as serviceWorker from "./serviceWorker";
|
||||
import "./index.css";
|
||||
import AppContainer from "./App/App.container";
|
||||
|
||||
import { ApolloProvider } from "react-apollo";
|
||||
import { client } from "./graphql/client";
|
||||
import initialState from "./graphql/initial-state";
|
||||
|
||||
require("dotenv").config();
|
||||
|
||||
//Init local state.
|
||||
client.writeData({
|
||||
data: {
|
||||
...initialState
|
||||
}
|
||||
});
|
||||
|
||||
ReactDOM.render(
|
||||
<ApolloProvider client={client}>
|
||||
<BrowserRouter>
|
||||
<AppContainer />
|
||||
</BrowserRouter>
|
||||
</ApolloProvider>,
|
||||
<BrowserRouter>
|
||||
<AppContainer />
|
||||
</BrowserRouter>,
|
||||
document.getElementById("root")
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user