This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-20
Channels
- # bangalore-clj (3)
- # beginners (30)
- # boot (117)
- # braid-chat (6)
- # carry (9)
- # cider (6)
- # clara (11)
- # cljs-dev (28)
- # cljsrn (12)
- # clojars (2)
- # clojure (114)
- # clojure-austin (2)
- # clojure-dev (1)
- # clojure-dusseldorf (1)
- # clojure-greece (47)
- # clojure-italy (5)
- # clojure-russia (79)
- # clojure-spec (121)
- # clojure-uk (133)
- # clojurescript (92)
- # community-development (67)
- # copenhagen-clojurians (1)
- # core-async (25)
- # cursive (67)
- # datascript (1)
- # datomic (34)
- # devcards (24)
- # emacs (8)
- # funcool (71)
- # juxt (1)
- # keechma (2)
- # lein-figwheel (6)
- # luminus (8)
- # mount (17)
- # om (135)
- # om-next (13)
- # onyx (147)
- # pedestal (11)
- # planck (7)
- # re-frame (42)
- # reagent (86)
- # rum (11)
- # specter (6)
- # testing (6)
- # untangled (1)
- # vim (6)
- # yada (24)
haha. I feel that after you start working re-frame for a bit it's inevitable to have functions like that
@shaun-mahood since assoc
takes multiple key-val pairs, couldn’t you just do :db (assoc db :foo 42 :bar 1)
?
@yury.solovyov @shaun-mahood also merge
, into
etc?
@nikp yep, although for me after working with re-frame for a while I realized that subscriptions and handlers were overkill for most things I'm doing and instead just use reagent/cursors.
I finally took some time to update projects to 0.8 new apis...I'm loving the new abstractions, they feel so natural ❤️
@nilrecurring very good to hear!
@mikethompson what do you think about some more sugar over basic subs? E.g.
(reg-basic-sub :active-page)
;; Equivalent to
(reg-basic-sub :active-page :active-page)
;; Equivalent to
(reg-sub
:active-page
(fn [db [_ k]]
(k db)))
I just checked out the reframe-utils minilib a couple of messages up there ^
Not keen that it be added to re-frame itself, but can obviously be made available via a utils library
Yep, my point was exactly about avoiding another dependency 🙂
@andre Hey that looks great. "re-frisk" I'm feeling slightly cautious about googling for that. Some images can't be unseen 🙂
@mikethompson thanks, so do you think i should think about better name?
No, i think it is great. Just joking about.
So, using data-frisk underneath?
And that reg-view
macro must inspect the view and pluck out the subscriptions
Certainly proves the concept
The challenges will come in bigger applications where there is an overwhelming number of views (many not showing currently)
But this is well worth persuing
For the longest time I've wanted to "turn debugging re-frame into a data visualization problem"
You've no doubt read this: https://github.com/Day8/re-frame/blob/master/docs/Debugging.md
views "registered" only then rendered, so, (not showing currently) will not shoung in re-frisk
Explains the 4 dominoes of flow
Oh, I see. So it is showing a pruned tree of views
Let me ask that again for clairty: So only those views currently rendered are in data frisk explorer?
unfortunately not, they added then rendered, but stayed after unmount, i think about removing it from explorer after unmount.
i didn't see the debugging page, i don't know why 😞 is this something like my lib but using clj-devtools ?
No, not really. Same ballpark, but different.
But, given you mentioned "flow" it seemed like somethin you might be interested in
I have to go and jump on a plane
Talk later