This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-25
Channels
- # announcements (9)
- # aws (50)
- # babashka (7)
- # beginners (95)
- # calva (10)
- # chlorine-clover (17)
- # cljdoc (11)
- # cljs-dev (4)
- # cljsrn (6)
- # clojars (25)
- # clojure (74)
- # clojure-belgium (4)
- # clojure-dev (17)
- # clojure-europe (3)
- # clojure-italy (23)
- # clojure-nl (3)
- # clojure-norway (5)
- # clojure-sanfrancisco (30)
- # clojure-spec (46)
- # clojure-uk (27)
- # clojured (3)
- # clojurescript (91)
- # core-async (61)
- # cursive (3)
- # data-science (4)
- # datascript (7)
- # datomic (67)
- # emacs (15)
- # events (1)
- # figwheel-main (13)
- # fulcro (31)
- # graalvm (1)
- # graphql (3)
- # hoplon (2)
- # jobs (3)
- # jobs-rus (1)
- # kaocha (4)
- # lambdaisland (34)
- # luminus (4)
- # off-topic (62)
- # om (4)
- # other-languages (9)
- # re-frame (14)
- # reitit (1)
- # ring-swagger (1)
- # shadow-cljs (51)
- # sql (5)
- # xtdb (8)
Is there a way to inject the DB into a layer 3 subscription? Creating a :db
subscription that ends up being identity
feels weird. Alternatively should I just be using non-anonymous functions for the data that I want to inject via layer 3 and then just use layer 2? Any recommendations on how to best do it?
Have you got an example of what you’re trying to do?
Hey guys, is there a better way to do
(some-> (rf/subscribe [:view.asset/active-asset])
deref)
?The deref should not stumble over nil. If there's no subscription though, than I would consider it a bug
@royalaid
a subscription shouldn't ever return nil
it will always return a ratom-ish thing
that ratom-ish
might contain a nil
but it will never be a nil itself
@royalaid Do you have re-frame-10x installed?
It can show you the value in each subscription
re-frame-template
will create an app with which you can experiment, maybe.