Martin Klepsch
Martin Klepsch
Hey @timvisher, just stumbled upon this while looking for a solution myself. I came up with the following: ``` clojure (defn possible-transitions [compiled-fsm state] (let [alphabet (f/alphabet (:fsm (meta compiled-fsm)))]...
I just noticed that the above snippet does trigger `actions` which makes it potentially un-pure making it more or less useless. Anybody came up with a better approach in the...
My new approach looks like this: ``` clojure (defn dry-run-wrap "Wrap `action-fn` so that it only calls `action-fn` if the FSM's state does not contain a truthy value under `::dry-run`."...
Hm... I thought I could also just call `transform` but somehow I am not able to get this to work. Does look like it should work to you? Shouldn't all...
Hey! Can you provide any more detail in what way it behaves differently?
```clj (-> (cljs-bean/->clj #js {:some "data"}) (assoc ::more (cljs-bean/->clj #js {:data "foo"}))) ``` Here's an example of the workaround. I didn't completely understand what you meant the first time you...
I'm also curious, does it make a difference to do something like this? i.e. will it cause a snapshot? ```clj (-> (cljs-bean/->clj #js {:some "data"}) (assoc-in [::more :data] "foo")) ```
Patch welcome! Also have you tried `boot show -u`?
Instead of a deep reaching change like this it might also make sense to consider advocating higher order components. E.g. users could define components that use `subscribe` but on their...
It's been a year since this issue has been opened and there's been lots of cool stuff coming out of re-frame, congrats to everyone being involved 🎉 I'm wondering what...