custom code - added "route" param

This commit is contained in:
Michael Shanks 2020-02-25 16:01:23 +00:00
parent d8ce468228
commit 071c0ebb40
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ export const buildCodeForScreens = screens => {
} }
const buildComponentCode = componentProps => const buildComponentCode = componentProps =>
`"${componentProps._id}" : (render, context, state, routeParams) => { `"${componentProps._id}" : (render, context, state, route) => {
${componentProps._code} ${componentProps._code}
}, },
` `

View File

@ -65,7 +65,7 @@
<div> <div>
<div class="editor-code-surround"> <div class="editor-code-surround">
function(render, context, store) {'{'} function(render, context, state, route) {'{'}
</div> </div>
<div class="editor"> <div class="editor">
<textarea bind:this={editor} /> <textarea bind:this={editor} />