From 338daedcf15b6db8904220d57353b0720147b2fb Mon Sep 17 00:00:00 2001 From: Jay Weeks Date: Fri, 18 Mar 2016 12:15:25 -0700 Subject: [PATCH] Update README.md Include `loadContext` for `loadPropsOnServer` --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 200efeb..3a8d21d 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,8 @@ app.get('*', (req, res) => { match({ routes, location: req.url }, (err, redirect, renderProps) => { // 1. load the props - loadPropsOnServer(renderProps, (err, asyncProps, scriptTag) => { + const loadContext = {} + loadPropsOnServer(renderProps, loadContext, (err, asyncProps, scriptTag) => { // 2. use `AsyncProps` instead of `RoutingContext` and pass it // `renderProps` and `asyncProps`