summaryrefslogtreecommitdiffstats
path: root/frontend/pages/_app.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-05-11 12:31:49 -0400
committerWes Bos <wesbos@gmail.com>2018-05-11 12:31:49 -0400
commitd3838ccb799cd8c286efcea90d776e8b6936d484 (patch)
tree4430ea2ada80b1fefb057adfce91867484be7475 /frontend/pages/_app.js
parent8ccb0d93cdc064776454c929e15aa03129be37a3 (diff)
move apollo to _app
Diffstat (limited to 'frontend/pages/_app.js')
-rw-r--r--frontend/pages/_app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/pages/_app.js b/frontend/pages/_app.js
index 5cedb5a..e13643b 100644
--- a/frontend/pages/_app.js
+++ b/frontend/pages/_app.js
@@ -1,6 +1,7 @@
import App, { Container } from 'next/app';
import React from 'react';
import { withRouter } from 'next/router';
+import withData from '../lib/withData';
// Next.js wraps each Page in an <App></App> component. This is handy for when you want to persist anything from page to page, or just access a component that is 1 level higher than each page.
@@ -30,4 +31,4 @@ class MyApp extends App {
}
}
-export default withRouter(MyApp);
+export default withData(withRouter(MyApp));