Last active
July 13, 2019 14:04
-
-
Save iazel/0bdaeefcd2b9c214ed48f6e7d421d834 to your computer and use it in GitHub Desktop.
Composable UI / TodoStore / Visibility
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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