Skip to content

Instantly share code, notes, and snippets.

@iazel
Last active July 13, 2019 14:04
Show Gist options
  • Save iazel/0bdaeefcd2b9c214ed48f6e7d421d834 to your computer and use it in GitHub Desktop.
Save iazel/0bdaeefcd2b9c214ed48f6e7d421d834 to your computer and use it in GitHub Desktop.
Composable UI / TodoStore / Visibility
class TodoStore {
private readonly visibility: StreamBox<Visibility>
constructor() {
this.visibility = new StreamBox(Visibility.ALL)
}
getVisibility(): RW$B<Visibility> {
return this.visibility
}
dispose() {
this.visibility.destroy()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment