Using a mantra build…
In routes.jsx there a few variables being passed into the function:
export default function (injectDeps, {FlowRouter}) {
}
I am a bit lost on how to pass the app context into the function to use within router actions…so something like this:
export default function (injectDeps, {FlowRouter,context}) {
}
I tried I few things but I can not figure it out.
I know in composers the exported function composer receives the context from somewhere but I am unable to find where:
export const composer = ({context}, onData) => {
}
Other than being against methodology is there any reason not to do this?
Has anyone done this? If so, how?
Thanks