Fork me on GitHub
#re-frame
<
2017-09-22
>
sandbags08:09:52

@genekim :<- is, ultimately, just a keyword

sandbags08:09:41

@genekim it just happens that reg-sub knows to look for that keyword in its arguments and expect some kind of subscription id following it

sandbags08:09:10

@genekim so :<- [:foo] is kind of an informal protocol

sandbags11:09:42

@genekim take a look at the docstring for regsub and the destructuring let at the top of the function

genekim15:09:23

Ah… Thanks so much! Wonderful @sandbags!!

yogthos18:09:57

I did a Reagent/re-frame workshop recently and was wondering if it might be good to have something along these lines in the official docs https://github.com/ClojureTO/JS-Workshop