From c9e78f1fc3fd5d770d13264f56f81e29ea48221a Mon Sep 17 00:00:00 2001 From: James Gillmore Date: Thu, 29 Jun 2017 22:50:46 -0700 Subject: [PATCH] feat(props argument added to preload(props)): --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index c872e0a..d4a7518 100644 --- a/src/index.js +++ b/src/index.js @@ -63,8 +63,8 @@ export default function universal( return class UniversalComponent extends React.Component { _mounted: boolean - static preload() { - requireAsync().catch(e => { + static preload(props?: Props) { + requireAsync(props).catch(e => { if (DEV) console.warn('[react-universal-component] preload failed:', e) }) }