所以签名component-will-receive-props
是这样的:
https://github.com/reagent-project/reagent/blob/master/src/reagent/core.cljs#L114
:component-will-receive-props (fn [this new-argv])
但new-args
似乎它是函数或 js 对象。我期待它是道具地图。如何从 中获取道具地图new-argv
?我可以从this
by获得旧道具(reagent/props this)
,但这是旧道具,不是新收到的。