Skip to content

Unidirectional patch updates #9

@Beanow

Description

@Beanow

Something I noticed BTS has but FxFloorboard and the Android Editor don't have, is updating the interface when parameters are changed on the amp.

At the moment I already have:

It doesn't take a lot of additional work to implement a unidirectional dataflow similar to things like flux.
flux-model

The simple implementation would be:

  • Adding a callback to subscribe to change notifications. Which will make the UI render again.

Ideally though we should extend this:

  • Create a few abstractions to do more specific subscribing, letting you reduce the number of queries and render only part of your UI.
  • Either expose a copy of the data to the callback, or implement the dispatcher model to guarantee the data is in a consistent state and immutable while your UI is still rendering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions