Open seanhess opened 10 months ago
I've been trying to use this library and I've found the way to make this example work, there are two things wrong:
"onclick"
instead, since on the client only attrs that start with on
are considered for event handlingaction
callback should never return a Nothing
. A Nothing
means that the websocket will be closed by the backend (and it's never opened again), AFAICT the best value for that here is forever $ threadDelay 1_000_000
Hi there, I'm revisiting a LiveView-esque framework I was toying with after a few years. I found replica, and I think the idea of having a lower-level remote VDOM library is fantastic. I'd like to get it running and see if it makes sense to build on top of it.
I can't figure out how to get a basic example working. How can I make an app where a button changes the message? I'm particular confused by the separate "fire" and "io" parts of step. If the action/io part returns a Just (IO ()) then it loops forever.
Thanks for your help!