Fork me on GitHub
#reagent
<
2020-08-14
>
conaw11:08:00

Is there an equivalent to add-watch for reagent/tracks?

p-himik11:08:18

I don't think so. The track type is very simple.

p-himik11:08:43

With that being said, it's so simple that it's not that hard to write your own version that supports add-watch.

conaw12:08:07

You’d look at the implementation for add-watch for this?

p-himik12:08:43

I have looked at the implementation of Track. :) It doesn't implement IWatchable.

conaw12:08:06

So you’d re-implement track on top of IWatchable?

p-himik12:08:20

Not sure what you mean by "on top". If I really needed that functionality from tracks, I would implement my own Track that implements the IWatchable protocol.

Yehonathan Sharvit12:08:09

Hi there, In re-com, what’s the way to create input for numbers? As far as I can see in the docs https://re-com.day8.com.au/#/slider the input seems to always be a string

agold21:08:17

How does one use the :f> tag? Is this documented somewhere?