Why Nostr? What is Njump?
2023-11-19 20:48:38

Marco Arment on Nostr: If anyone else is nuts enough to use withObservationTracking(), let me save you ...

If anyone else is nuts enough to use withObservationTracking(), let me save you potentially a lot of time:

It only calls the onChange: block ONCE, BEFORE the first change. It does NOT provide continuous change notifications over time, and it works like a willSet, not a didSet.

I made a quick utility to get Combine publishers for Observable key-paths, which is easier and cleaner for me to use. Does this look right? It works… https://gist.github.com/marcoarment/88ee13df326c25c1f0a68c09e086f03f
Author Public Key
npub1wrzpk00cj4yj2u0pfmld6x529ft2mqqv32quy4fuawl8l20kftuq3njlpf