From d88e20901e8fca1ff94a1f80f7a9e0ac3481c8e8 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 11 May 2018 13:21:14 -0400 Subject: app --- frontend/pages/_app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'frontend/pages') diff --git a/frontend/pages/_app.js b/frontend/pages/_app.js index 63c6be5..daa3e68 100644 --- a/frontend/pages/_app.js +++ b/frontend/pages/_app.js @@ -1,6 +1,5 @@ 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. @@ -14,10 +13,10 @@ class MyApp extends App { if (Component.getInitialProps) { pageProps = await Component.getInitialProps(ctx); } - // surface the router on each page pageProps.router = router; + console.log(router.query); return { pageProps }; } @@ -31,4 +30,4 @@ class MyApp extends App { } } -export default withRouter(withData(MyApp)); +export default withData(MyApp); -- cgit v1.3