Fork me on GitHub
#re-frame
<
2019-07-09
>
rgm15:07:02

@jkrasnay Also, a pattern I seem to have to keep re-discovering is that I can store data that easily re-hydrates into a function at the point of use.

rgm15:07:39

Eg the first N params for a partial can be stored in a vector

clojuregeek15:07:41

Looking for an example app that is more complex then a todo app or 2048 game.. anyone know of one ?

knubie15:07:47

@clojuregeek https://realworld.io 👈 this might be useful

clojuregeek15:07:36

Thanks :) and Hi Shaun!! Let’s get some bbq again!

shaun-mahood15:07:24

Definitely!! Starting to get hungry thinking about it...

Ahmed Hassan16:07:48

In my re-frame app how can I set up two instances of keechma/forms ? like one to validate registration form and other to validate login form.

Ahmed Hassan16:07:30

I use it like given in this example, but it validates both registration and login forms when I submit any of them. https://github.com/keechma/example-forms/blob/master/src/cljs/keechma_forms_example/re_frame.cljs#L39

Ahmed Hassan17:07:46

defined two validators and called forms.re-frame/constructor on each.

Ahmed Hassan17:07:29

one for registration and second for login form.

joshkh19:07:05

is it unholy to dereference a subscription in an effect? for example:

(reg-fx ::generic-http-fx
        (fn [params]
          (let [current-token (subscribe [::my-token])]
            ; do some api call with the current token value
            )))