3 ms·
> Where I struggle with it is the constant need to decide between implementing UX logic directly in LiveView or implementing it purely on the client side via th
by throwawaymaths 4y ago
> Where I struggle with it is the constant need to decide between implementing UX logic directly in LiveView or implementing it purely on the client side via the JS helpers.
Welcome to the world of distributed systems. Who owns what piece of state is the perennial difficulty that has plagued developers forever.
You are right though, responsive testability suck with liveview (and honestly just about any be+fe system). I don't see why in the long run it shouldn't be possible to shove a JavaScript engine into the VM (I played around with doing this with mozjs for a bit -- may come back to it) and use it to store a dom for testing.