From 53620056665b24a42d3f4750a280d1301c5c494f Mon Sep 17 00:00:00 2001 From: Julian Jelfs Date: Wed, 2 Oct 2019 11:43:38 +0100 Subject: [PATCH] make sure that props are passed on to the root component --- src/single-spa-preact.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/single-spa-preact.js b/src/single-spa-preact.js index b7c8284..bfbdb37 100644 --- a/src/single-spa-preact.js +++ b/src/single-spa-preact.js @@ -38,10 +38,10 @@ function bootstrap(opts) { return Promise.resolve(); } -function mount(opts) { +function mount(opts, props) { return new Promise((resolve, reject) => { opts.renderedNode = opts.preact.render( - opts.preact.h(opts.rootComponent, null, null), + opts.preact.h(opts.rootComponent, props, null), getRootDomEl(opts), );