rum

Simple, decomplected, isomorphic HTML UI library for Clojure and ClojureScript | 0.12.8 https://github.com/tonsky/rum/blob/gh-pages/CHANGELOG.md#0128
jrychter 2017-10-11T12:03:29.000002Z

I don't use anything in particular. I do have a dispatcher and event-based state updates, but I'm not sure why I'd need more than that.

2017-10-11T14:16:13.000104Z

Hello everyone, question : in :will-update, how to access the previous state of component ? The state I receive in this hook in the new state.

2017-10-11T14:18:22.000007Z

In React.js, it does receive the new state as well, but you can access the old state with this.state. https://reactjs.org/docs/react-component.html#componentwillupdate

2017-10-11T14:38:02.000081Z

I found (rum/state (:rum/react-component state)). I think this is what I want.

2017-10-11T16:01:15.000247Z

For those interested, it returns a Volatile. Be sure to deref if you want to access the values.