Fork me on GitHub
#reveal
<
2021-01-13
>
Neil Ashton15:01:15

Hey all! Has anyone tried using Reveal along with Weasel + Piggieback?

vlaaad19:01:47

Hi! I haven't tried this setup 🙂 If you'll make it work, please consider making a write up 🙂

vlaaad19:01:17

weasel/piggieback is nrepl stuff, would reveal's nrepl middleware be enough in this case?

Neil Ashton21:01:16

So far I haven’t been able to get that to succeed. But I’m going to keep tinkering with this till I can get it to work, and I will definitely share my notes once I do!

👍 3
vlaaad22:01:19

Hey there! I made another minor update, 1.2.186 that makes observable views more generic, e.g. you are no longer limited to refs, but instead can use any observable data source. Here is example that observes the tap queue to view latest tapped value:

{:fx/type observable-view
 ;; generic observable:
 :subscribe (fn [notify]
              (add-tap notify) ;; sub
              #(remove-tap notify)) ;; unsub
 :fn (fn [v] {:fx/type value-view :value v})}

3