Fix router context for Next.js v6.

This commit is contained in:
Jayden Seric 2018-04-25 13:32:23 +10:00
parent e420ac1149
commit d3daccaab1

View File

@ -48,7 +48,7 @@ export default ComposedComponent =>
static async getInitialProps(context) {
const initialProps = {
composedComponentProps: {
url: {
router: {
pathname: context.pathname,
asPath: context.asPath,
query: context.query