1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00

pass in routeParams to uiFunctions

This commit is contained in:
Michael Shanks 2020-02-21 23:01:41 +00:00
parent 0902febc00
commit d0f3eeca1b

View file

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