pass in routeParams to uiFunctions

This commit is contained in:
Michael Shanks 2020-02-21 23:01:41 +00:00
parent bd5adc45cb
commit d7de2f1b0e
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ export const prepareRenderComponent = ({
} }
if (func) { if (func) {
func(createNodeAndRender, parentContext, getCurrentState()) const state = getCurrentState()
const routeParams = state["##routeParams"]
func(createNodeAndRender, parentContext, getCurrentState(), routeParams)
} else { } else {
createNodeAndRender() createNodeAndRender()
} }