Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unidirectional patch updates #9

Open
Beanow opened this issue May 26, 2017 · 0 comments
Open

Unidirectional patch updates #9

Beanow opened this issue May 26, 2017 · 0 comments
Labels

Comments

@Beanow
Copy link
Member

Beanow commented May 26, 2017

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.
@Beanow Beanow added the Feature label May 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant