pomdtr avatar
Create valexport default codeOnValTown(hydrate("stevekrouse", "TodoApp"));

Not a fan of this line, as it will not survive forks. I think this val could be used instead: https://www.val.town/v/andreterron/inferRequestVal

pomdtr avatar

Another option would be to do:

export default hydrate(import.meta.url)

It is quite clean in my opinion, as it explicitely declares what the client is looking for (the module url)

stevekrouse avatar

Great ideas! Fixed!

pomdtr avatar

I'm also going to copy what I mentioned on discord: loader and action could be merged (what about just using handler) ?

stevekrouse avatar

Great idea! Feel free to fork this val and the framework val and fix em both, and send me the two PRs and I'd merge em!