Fork me on GitHub
#re-frame
<
2021-02-18
>
az07:02:40

Is there a way to create recursive reg-sub calls? This code doesn’t work, but should give a sense of what I’m trying to accomplish.

p-himik09:02:12

If I understand your intent correctly, it is possible and it's described in the docstring of reg-sub.

afleck14:02:15

if I were doing this i would likely make a sub that subscribes the children, and then use that as part of the signals function

afleck14:02:23

what about it doesn’t work?

az02:02:42

Thanks @U013CE2GQRH @U2FRKM4TW, still trying to work through it. Basically I am just trying to figure out how to denormalize the store and I have relationships that are arbitrarily deep. Burrito -> Sauce -> Spice blend -> Salt & Pepper I’ve been playing around with sub-raw to see if I can work through it. So far no luck. Will keep working through and come back once I have more progress.

dazld10:02:29

morning! wondering if there's some prior art out there on integrating core async channels with re-frame? I can see a way through, but would be interested in reading code / articles if there's any out there.

dazld10:02:04

if there isn't, then I may write up some notes once done with tinkering.

dazld11:02:10

that is helpful, thank you @U2FRKM4TW