From d3838ccb799cd8c286efcea90d776e8b6936d484 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 11 May 2018 12:31:49 -0400 Subject: move apollo to _app --- frontend/pages/_app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'frontend/pages/_app.js') 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 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)); -- cgit v1.3