我们正在使用Clojurescript和Reagent结合Chart.js进行开发。现在我知道Chart.js有一个chart.update()方法,可以用来更新图表数据。那么问题来了,我该如何设置组件,以便在:reagent-render中呈现图表,并在可能的情况下通过:component-will-update调用chart.update()方法?
基本上,是否有一种方法可以在:component-will-update函数中获取从:reagent-render函数创建的图表的句柄?
基本上,是否有一种方法可以在:component-will-update函数中获取从:reagent-render函数创建的图表的句柄?