Skip to content

How do I decouple the trigger and effect of an action? #108

Closed
@alaendle

Description

@alaendle

First of all I would like to thank you for this great library, I really believe that something like this has been missing so far and I am a big advocate of such approaches to integrate server and client.

Maybe I don't fully understand the concept, but I'm trying to play around with the library to see if it's ready for use in more complex applications.

The real scenario is a bit more complicated, but to simplify it, I asked myself the following question: Let's say I display the server's time in a field and have a button elsewhere on the page that should update the time display.

Of course, I could put everything in a large HyperView, but then I'd transfer the entire view via WebSockets every time the time is updated.

Are there better options? Is my requirement incorrect/inconsistent? Is the library unsuitable for this?

(or in other words, take the example https://docs.hyperbole.live/counter - why transfer the buttons when only the counter changes?)

Thanks in advance for any feedback - also from other users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions