Ron Martinez

Results 22 comments of Ron Martinez

In the past I've used a similar `Proxy` technique for creating element functions on-the-fly. It certainly feels cleaner. Your one-liner for custom elements support is pretty neat ! However, if...

It's good to know the `Proxy` performance penalty is not a concern. That said, it looks like the primary advantage of this technique over the current technique is the custom...

@stewartrule Thank you for your input! I'll take a look at this when I have time later. @zaceno It is worth it. "errors just because the inference failed for some...

@stewartrule Yeah, TypeScript's type inference is weird sometimes. I'm still investigating this but another option you can do is: ```js import { app, h, text, View } from "hyperapp"; import...

@stewartrule I've never used React stuff, so thank you for mentioning `TypedUseSelectorHook`. It gave me something to study. Please verify the following works on your end: Add this new type...

> @icylace yep, that seems to work. I do think you can get rid of the `_` since it isn't used? @stewartrule That should prevent some gotcha errors from happening....

@stewartrule TL;DR -- `TypedH` will keep the `_` but in an improved way. --- Let's discuss `_`. Consider: ```ts const Canvas = (state: State) => { return h("div", {}, state.shapes.map(toShape));...

@stewartrule The latest Hyperapp dot release, 2.0.15, contains `TypedH`! Please try it out and see if everything is alright on your end using it.

@tillarnold Writing effects, or more specifically effecters, without a payload parameter should already be valid with the current definitions. That may sound strange. To find out why TypeScript does this,...

Thanks for the bug report! I'll look into it when I can.