(set-state this new-state)
Merge component state with new-state.
Equivalent to (swap! (state-atom this) merge new-state)
Source
(defn
set-state
"Merge component state with new-state.\n Equivalent to (swap! (state-atom this) merge new-state)"
[this new-state]
(assert-component this)
(assert-new-state new-state)
(swap! (state-atom this) merge new-state))