pass in routeParams to uiFunctions
This commit is contained in:
parent
bd5adc45cb
commit
d7de2f1b0e
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue