From b083f6ca6671963a020f2d779b5bda7114e8c404 Mon Sep 17 00:00:00 2001 From: fraserxu Date: Wed, 27 Apr 2016 08:58:22 +1000 Subject: [PATCH] fix loadPropsOnServer params --- modules/AsyncProps.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/AsyncProps.js b/modules/AsyncProps.js index 4dc7880..78aa26d 100644 --- a/modules/AsyncProps.js +++ b/modules/AsyncProps.js @@ -94,6 +94,10 @@ function createElement(Component, props) { } export function loadPropsOnServer({ components, params }, loadContext, cb) { + if (typeof loadContext === 'function') { + cb = loadContext + loadContext = {} + } loadAsyncProps({ components: filterAndFlattenComponents(components), params,