nadako / TinkStateSharp

Handle those pesky states, now in C#
https://nadako.github.io/TinkStateSharp/
The Unlicense
43 stars 1 forks source link

Add ability to disable tracking for parts of code in `Observable.Auto(Run)` #14

Open nadako opened 1 year ago

nadako commented 1 year ago

Basically expose AutoObservable.Untracked in a public API, because sometimes we want to have an Observable.AutoRun code that tracks most of the accessed observables, but not all (e.g. in child calls that might also access observables). While it's a pretty error-prone thing to do and should be discouraged (TODO: add this to docs!), it is useful in some cases and AutoRun without it would be incomplete.