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() }