I am trying to implement the update update lifecycle function to avoid unnecessary rendering. My current implementation is as follows:
(def my-component (with-meta (fn [props] (fn-body-here-with-some-reactive-deref'ing-going-on)) {:should-component-update (fn [this old-argv new-argv] false)}))
The component is always updated, even though I return false from the update-component-update. The function does not even seem called as adding some debugging (.log js/console ...) statements does not generate any messages in the console. What am I missing here?
source share