WIP for Job Costing BOD-192

This commit is contained in:
Patrick Fic
2020-07-21 08:26:26 -07:00
parent 74aca37ee2
commit 068e1e8057
16 changed files with 463 additions and 5 deletions

View File

@@ -108,12 +108,17 @@ if (process.env.NODE_ENV === "development") {
middlewares.push(retryLink.concat(errorLink.concat(authLink.concat(link))));
const cache = new InMemoryCache();
const cache = new InMemoryCache({});
export const client = new ApolloClient({
link: ApolloLink.from(middlewares),
cache,
connectToDevTools: process.env.NODE_ENV !== "production",
defaultOptions: {
watchQuery: {
fetchPolicy: "cache-and-network",
},
},
});
export default function AppContainer() {