This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-09
Channels
- # announcements (1)
- # aws (4)
- # beginners (55)
- # calva (13)
- # cider (58)
- # clj-kondo (59)
- # cljs-dev (4)
- # clojure (21)
- # clojure-austin (1)
- # clojure-dev (2)
- # clojure-europe (4)
- # clojure-italy (9)
- # clojure-nl (13)
- # clojure-norway (4)
- # clojure-spec (12)
- # clojure-uk (15)
- # clojurescript (22)
- # cursive (11)
- # datomic (3)
- # duct (1)
- # events (1)
- # fulcro (6)
- # graalvm (28)
- # hoplon (9)
- # jobs (2)
- # jobs-discuss (21)
- # mount (14)
- # nrepl (4)
- # off-topic (38)
- # pathom (1)
- # perun (4)
- # re-frame (17)
- # reitit (32)
- # shadow-cljs (44)
- # testing (7)
- # tools-deps (62)
- # vim (10)
@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.
Looking for an example app that is more complex then a todo app or 2048 game.. anyone know of one ?
@clojuregeek https://realworld.io 👈 this might be useful
@clojuregeek There are a few on https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md#examples-and-applications-using-re-frame
Thanks :) and Hi Shaun!! Let’s get some bbq again!
Definitely!! Starting to get hungry thinking about it...
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.
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
Resolved
defined two validators and called forms.re-frame/constructor
on each.
one for registration and second for login form.
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
)))
this seems related: https://github.com/Day8/re-frame/blob/master/docs/FAQs/UseASubscriptionInAnEventHandler.md
oh, thanks @lilactown.