【发布时间】:2015-09-11 20:12:38
【问题描述】:
所以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 获取道具地图?我可以通过(reagent/props this)从this获得旧道具,但这是旧道具,不是新收到的。
【问题讨论】:
标签: clojurescript reagent