1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00

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