Fork me on GitHub
#re-frame
<
2018-06-03
>
mikethompson00:06:49

@arne-clojurians indeed, subscriptions are way of delivering materialised views of data to the UI rendering functions. If your UI needs the credentials data (`src` on <image> as you say), then it seems reasonable to me that the UI subscribes for that data. And, yes, subscriptions are often about data that changes, but not always.

p-himik04:06:55

@mikethompson As far as I can tell, track is just a caching wrapper around make-reaction, so it doesn't let you know about old values in any way. re-frame-utils can help with injecting subscriptions into event handlers and with dispatching events when subscriptions change while letting know about only the new value, so no luck here either. Well, at least my solution works, so that's something.