Philip Kamenarsky

Results 76 comments of Philip Kamenarsky

I've been wondering about this. Why not just have something like: ``` div :: [Html a] -> Html a ``` ...similar to [`purescript-react`](https://github.com/purescript-contrib/purescript-react/blob/master/src/React/DOM.purs#L196)?

I ended up pursuing a different direction, especially in the context of [Replica](https://github.com/pkamenarsky/replica). The problem really is just about how to best share state in the context of neverending widgets....

> Can you give an example of using loop and with to do something that can't be done by loopState? For example: ``` counter :: Int -> Widget HTML (Either...

Ah, that's clever! However, I'm proposing something subtly different - `with` doesn't rerender everything in `local`, so we could do something like this: ``` counter :: Text -> Int ->...

This is super useful, thanks! If you feel motivated enough to package it up as a separate module in the `examples` folder and submit a PR I'll merge 🙇

That's interesting. It makes sense that two events are fired to the server (the input field listens both for `input` and `keyDown` events), but only a single diff should ever...

I *suspect* this is an issue with the underlying `concur-core` - normally, this shouldn't be happening as the VDOM should persist through IO operations until it is explicitly replaced by...

I think it's always tracked `pkamenarsky/concur`, i.e. see 7192dd5a49feb90996c14f80aa67e9d4df4bf4a1? I'm kind of wary of pushing changes to upstream `concur` though before at least getting some real-world mileage out of them...

Yeah, I've thought about this as well, [here](https://github.com/pkamenarsky/replica/blob/components/js/client.ts#L78) are some experiments regarding this in the Replica repo. The basic idea is to piggyback on the evend dispatch -> server ->...

Note to self, investigate [custom components](https://guide.elm-lang.org/interop/custom_elements.html).