anchors icon indicating copy to clipboard operation
anchors copied to clipboard

What would be the right way of using a scan operator?

Open GDX64 opened this issue 2 years ago • 2 comments

If the history of changes is important, how can I use it to derive the new values? The closest I saw of an accumulator was map_mut, but it loses values in between if I don't poll for changes.

GDX64 avatar Jul 16 '23 14:07 GDX64

i think this library's architecture fundamentally doesn't work if you care about the history of values. see https://blog.janestreet.com/breaking-down-frp/

lord avatar Jul 26 '23 02:07 lord

I've read it before, I've seen it on the readme of the repo :) . Is it possible to mutate the value of the signal with a function? Kind of like what leptos does.

fn with<F: FnOnce(&mut T)>(&mut self, f: F)

GDX64 avatar Jul 27 '23 11:07 GDX64