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
mattly 2019-02-14T01:06:55.005400Z

Maybe have an fx that does delayed dispatching from your initial event to update the state later

mattly 2019-02-14T01:08:45.007700Z

Alternately, if you need the concept of a clock in your app, just have a current time value in your state that gets updated from a setInterval and then add a delete at key to those things

mattly 2019-02-14T01:08:53.008100Z

But the first is conceptually simpler

mattly 2019-02-14T01:09:51.009300Z

You could also delve into one of the react animation libraries and just have a super sharp transition after a delay

mattly 2019-02-14T01:10:16.010Z

Or if you’re on cutting edge react something with useState

mattly 2019-02-14T01:29:15.010700Z

Personally I’ve used the “delayed dispatch” pattern a lot and it’s pretty flexible

pez 2019-02-14T07:56:15.016700Z

I use delayed dispatch as a side effect in other places in the app. I'd like to use that here as well. However, I do not find a clean place to do it here. The individual state updates are unaware of this need at the moment. They just update their things and then this view sort of have two ”versions” that depend on some specific subset and combination of those things. So I have a function like (defn have-all-things? [state] ... and on the result of that I determine which version to display. Maybe I do need to add something that is aware of this subset/combination of things into the the state updates...