custom code - added "route" param
This commit is contained in:
parent
455803030d
commit
36f318a847
|
@ -27,7 +27,7 @@ export const buildCodeForScreens = screens => {
|
|||
}
|
||||
|
||||
const buildComponentCode = componentProps =>
|
||||
`"${componentProps._id}" : (render, context, state, routeParams) => {
|
||||
`"${componentProps._id}" : (render, context, state, route) => {
|
||||
${componentProps._code}
|
||||
},
|
||||
`
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
|
||||
<div>
|
||||
<div class="editor-code-surround">
|
||||
function(render, context, store) {'{'}
|
||||
function(render, context, state, route) {'{'}
|
||||
</div>
|
||||
<div class="editor">
|
||||
<textarea bind:this={editor} />
|
||||
|
|
Loading…
Reference in New Issue