We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Atom().Change
Originally posted by mozesa August 3, 2022
var atom = Atom(Set("A", "B", "C")); atom.Change += value => Console.WriteLine(string.Join(',', value)); atom.Swap(old => old.Add("D")); atom.Swap(old => old.Add("E")); atom.Swap(old => old);
A,B,C,D A,B,C,D,E A,B,C,D,E
Actually, I would like to use atom in the following context: var status = Atom(ConnectionStatus.Connected);
var status = Atom(ConnectionStatus.Connected);
Now the problem is that the AtomChangedEvent<A> fires always, even if I provide swap(status, _ => ConnectionStatus.Connected).
AtomChangedEvent<A>
swap(status, _ => ConnectionStatus.Connected)
I would like to have AtomChangedEvent<A> only when there is new value.
The text was updated successfully, but these errors were encountered:
making atoms signal changes only on difference Issue louthy#1097
0257ad9
louthy
No branches or pull requests
Discussed in #1096
Originally posted by mozesa August 3, 2022
Actually, I would like to use atom in the following context:
var status = Atom(ConnectionStatus.Connected);
Now the problem is that the
AtomChangedEvent<A>
fires always, even if I provideswap(status, _ => ConnectionStatus.Connected)
.I would like to have
AtomChangedEvent<A>
only when there is new value.The text was updated successfully, but these errors were encountered: