Fork me on GitHub
#reagent
<
2015-12-30
>
sveri14:12:25

Hi, I have a chart that I want to redraw on every state change. Now, that chart is initally drawn during the :component-did-mount lifecycle and I just saw that state changes are not pushed to this function then:

sveri14:12:28

How would I make that work?

sveri14:12:12

is it what component-did-update is good for?

sveri14:12:42

I also just tried this example: https://github.com/Day8/re-frame/wiki/Using-Stateful-JS-Components matched to my problem and still don't see updates

sveri14:12:58

Ah, I got it, the missing point was the dereference of the atom when calling the component

peterbak16:12:33

forgetting to deref atoms has been biting me too simple_smile