Take a situation where you have a subscription A, who's parameters will be obtained from subscription B.
One way of achieving that I know of would be using dynv - for which the docs say " This argument exists for
historical reasons and is borderline deprecated these days."
What the docs don't say is what this has been deprecated in favour of - that is the first issue that I would like to see addressed.
For a situation like this, I would reach for reg-sub-raw - for which the docstring says: "This is a low level, advanced function. You should probably be using reg-sub instead."
I found that last bit quite off-putting, so I didn't look into it as early as I should have done and went down the dynv route - which gets tricky when you also have C, D.. and more dependent-parameterized subs. For the situation described, reg-sub-raw is the right solution afaik.
The docstring does also link to http://day8.github.io/re-frame/flow-mechanics/ which was helpful - and set me on the right path eventually :). I would suggest the docs said something along the lines of : reg-sub-raw should only be used when dealing with more advanced use cases such as ... xyz.. maybe mention the above scenario or something more general?
Take a situation where you have a subscription A, who's parameters will be obtained from subscription B.
One way of achieving that I know of would be using
dynv
- for which the docs say " This argument exists for historical reasons and is borderline deprecated these days."(re-frame.core/subscribe [::A args] [(re-frame.core/subscribe [::B])])
What the docs don't say is what this has been deprecated in favour of - that is the first issue that I would like to see addressed.
For a situation like this, I would reach for
reg-sub-raw
- for which the docstring says: "This is a low level, advanced function. You should probably be usingreg-sub
instead."I found that last bit quite off-putting, so I didn't look into it as early as I should have done and went down the dynv route - which gets tricky when you also have C, D.. and more dependent-parameterized subs. For the situation described, reg-sub-raw is the right solution afaik.
The docstring does also link to http://day8.github.io/re-frame/flow-mechanics/ which was helpful - and set me on the right path eventually :). I would suggest the docs said something along the lines of : reg-sub-raw should only be used when dealing with more advanced use cases such as ... xyz.. maybe mention the above scenario or something more general?
Thanks