Fork me on GitHub
#re-frame
<
2017-11-25
>
mikethompson08:11:57

Cursive also has this capability

borkdude12:11:23

It has special support for re-frame?

rgm19:11:58

hi all ... semi-involved question involving re-frame subscriptions (thanks in advance): I'm using D3 and devcards, so I'm trying the pattern of holding the re-frame stuff in an outer component and have an inner component that manages the D3 work: https://gist.github.com/rgm/0e75c4bf069a9136e98179d9596c4bae#file-core-cljs-L88

rgm19:11:38

(so there's kind of an inner-inner pseudo component that does D3 enter update exit which may not be entirely relevant here)

rgm19:11:45

so the question: I want to pass the subscription data in from the outermost component, but passing in the un-deref'd subscription smells wrong to me. Is it?

rgm19:11:18

also, clearly I'm not understanding something since commenting out the line linked above makes the machinery stop working: the outer component is seeing the adds/removes to the app db correctly (ie. L104 looks right), but then the inner D3 component's componentDidUpdate stops getting called.

mikethompson20:11:31

@rgm Here is the original description of that pattern, which may help you to track down the problem: https://github.com/Day8/re-frame/blob/master/docs/Using-Stateful-JS-Components.md

borkdude20:11:24

Haven’t tried Cursive since version 1. Maybe I should try it again.