Fork me on GitHub

@danielcompton I saw you used metamorphic in re-frame-10x and then removed it. Any insight on what it’s good at / not good at? Curious since I’m considering using the library


Hmm, trying to remember now. I think it was fine but maybe we didn’t need all of what it provided?


I might have had trouble expressing the kinds of queries that I wanted to in metamorphic’s query language


hi, why doesn't re-frame template include accountant? How do you redirects?


well you can still do it


something like

(defn go-to-internal
  (set! (.-hash js/location) place))
to move to things like "#section1"


the proper way is probably though, which is what accountant uses I believe


@tomaas Take a look at It worked out pretty good for me.

👍 2

From the name, it may seem as a replacement for re-frame. But it's just a library created to be used alongside with re-frame.


I'm a little confused with cofx. I want to use async-storage (similar to localstorage with react native. How am I supposed to provide a key that isnt static? from the documentation it's trivial to have a static value (inject-cofx :async-storage "key"). but when I want that "key" value to be an input to the handler how is that supposed to be done?


I think that is attainable via parameterized events. I'm a newb at re-frame but my understanding is that when you dispatch an event, you can pass a vector of pretty much whatever you want. The first item is the event keyword, but everything else in the vector is up to the event type. So, you could pass the key when you dispatch the event and (IIRC) the co-efx handler should have access to the event vector. But, again, I'm a newb so I could be wrong about this.


yeah I understand that. the issue is the cofx inject occurs before the input values. Maybe I can use interceptor? I will take a look at that