Fork me on GitHub
#reagent
<
2016-12-02
>
borkdude13:12:26

How do I get to the updated arguments in :component-did-update?

borkdude13:12:28

For example:

(fn [foo]
  (reagent/create-class
     {:component-did-update
      #(side-effect! foo)
      :reagent-render (fn [foo] [:div#foo])}) 

borkdude13:12:36

This doesn’t work when the foo args are updated

borkdude14:12:14

I guess I can use will-update