Skip to content

Question - Todo App Demo #276

Answered by josepot
gleisonkz asked this question in Q&A
Jun 28, 2022 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

Hi @gleisonkz !

So, yep, your intuition is right: manually calling subscribe, while also using tap for something like that should be a clear indicator that something is off. In the end the philosophy of this library is that we should be able to specify the dynamic behavior of any piece of state completely at the time of declaration. So, yep, what your code was doing is precisely what we would like to avoid doing: "poking" a setters whenever we want to change the state, because then it becomes very difficult to understand why and/or what changed a piece of state... The purpose of this library is to be able to compose different small pieces of state through streams.

Check this out, later to…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@gleisonkz
Comment options

@josepot
Comment options

Answer selected by gleisonkz
Comment options

You must be logged in to vote
2 replies
@josepot
Comment options

@gleisonkz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #275 on June 28, 2022 08:16.