Replies: 1 comment 1 reply
-
That's typically the pattern we follow (or we do it in JS). If you want something a bit more structure, take a look at Kino.Screen: https://hexdocs.pm/kino/Kino.Screen.html |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, we have an internal tool for visual snapshot testing that operates within a Kino notebook. I was wondering what sort of patterns are recommended when developing more complex UIs. Here's a screenshot:
It's got a lot of interactions going on such as:
I've implemented some hacks to have a maintainable model to keeping this under control. Here's a snippet of our server:
What I find is that, modeling it like React makes things manageable. This means:
Kino.Frame
liberally. It's not very performant so the best workaround I found was to debounce re-renders to ~100ms.My question is: are there better patterns for implementing this? Perhaps something to make this pattern easier could exist inside of Kino? Perhaps something Kino inspired or Liveview inspired?
Beta Was this translation helpful? Give feedback.
All reactions