custom code - added "route" param

This commit is contained in:
Michael Shanks 2020-02-25 16:01:23 +00:00
parent 455803030d
commit 36f318a847
2 changed files with 2 additions and 2 deletions

View File

@ -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}
},
`

View File

@ -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} />