From d7de2f1b0e50bc23f06fe283fb040ddd34b8530f Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Fri, 21 Feb 2020 23:01:41 +0000 Subject: [PATCH] pass in routeParams to uiFunctions --- packages/client/src/render/prepareRenderComponent.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/client/src/render/prepareRenderComponent.js b/packages/client/src/render/prepareRenderComponent.js index d79265093a..fe6757dd1c 100644 --- a/packages/client/src/render/prepareRenderComponent.js +++ b/packages/client/src/render/prepareRenderComponent.js @@ -42,7 +42,9 @@ export const prepareRenderComponent = ({ } if (func) { - func(createNodeAndRender, parentContext, getCurrentState()) + const state = getCurrentState() + const routeParams = state["##routeParams"] + func(createNodeAndRender, parentContext, getCurrentState(), routeParams) } else { createNodeAndRender() }