This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-02
Channels
- # bangalore-clj (1)
- # beginners (5)
- # cider (24)
- # clara (2)
- # cljs-dev (6)
- # cljsrn (2)
- # clojure (10)
- # clojure-austin (2)
- # clojure-serbia (1)
- # clojure-spec (6)
- # clojure-uk (6)
- # clojurescript (59)
- # cursive (1)
- # datomic (10)
- # emacs (3)
- # events (7)
- # graphql (1)
- # jobs (2)
- # lein-figwheel (9)
- # off-topic (40)
- # pedestal (5)
- # portkey (2)
- # re-frame (5)
- # reagent (20)
- # shadow-cljs (7)
- # spacemacs (4)
- # specter (19)
- # testing (21)
Any emacs using re-framers have a neat way of listing events
? I'm finding it increasingly difficult to keep track of them as my project grows.
I am usually doing this type of stuff from bash: $ grep -Pr -A 1 'reg-event-db|reg-event-fx' src/ | grep -Pv 'reg-event-db|reg-event-fx|~|--'
Thanks @U662GKS3F that helps. Had to tweak it to work with mac osx, grep doesn't understand the perl option:
egrep -r -A 1 'reg-event-db|reg-event-fx' src_front/anh_front/ | egrep -v 'reg-event-db|reg-event-fx|~|--'
i have credentials to multiple services to manage in my app; some of them are used to verify access to routes, some are used to interact with external apis etc. how do i manage them? should i just put them in the app-db and have the different modules subscribe to them? i feel like that makes the app harder to test. any advice?
to be maybe a bit more clear: the problem is, all the fns interacting with them look like (get-image-uri :service creds)
; i don't want every component that needs to give a src
to an image to have to know about the credentials. I feel like i could use subscriptions for that, but aren't subscriptions more for things that change often? or are they meant as a general lense into the app-db?