From 2529629a5299bcafc0198853be57a98069364e77 Mon Sep 17 00:00:00 2001 From: Brent Jackson Date: Mon, 28 May 2018 12:12:18 -0400 Subject: [PATCH] Merge subroute props --- lib/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build.js b/lib/build.js index bc9e2b0..cd799b7 100644 --- a/lib/build.js +++ b/lib/build.js @@ -135,7 +135,7 @@ const getRoutes = async (App) => { : {} dynamicRoutes.push( Object.assign({}, route, subroute, { - props: Object.assign({}, route.props, pageProps) + props: Object.assign({}, route.props, subroute.props, pageProps) }) ) return