This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-19
Channels
- # aleph (1)
- # announcements (3)
- # aws (1)
- # beginners (95)
- # calva (15)
- # clojars (4)
- # clojure (84)
- # clojure-android (3)
- # clojure-austin (1)
- # clojure-chicago (1)
- # clojure-dev (66)
- # clojure-europe (3)
- # clojure-italy (15)
- # clojure-nl (13)
- # clojure-uk (33)
- # clojuredesign-podcast (9)
- # clojurescript (6)
- # cursive (68)
- # data-science (4)
- # datavis (1)
- # datomic (13)
- # emacs (4)
- # fulcro (2)
- # jobs (4)
- # jobs-discuss (89)
- # luminus (23)
- # nrepl (6)
- # off-topic (2)
- # onyx (2)
- # pathom (4)
- # pedestal (11)
- # re-frame (9)
- # reagent (8)
- # reitit (5)
- # shadow-cljs (131)
- # spacemacs (13)
- # sql (8)
- # vim (8)
- # xtdb (7)
- # yada (4)
thanks sogaiu. yeah, I understand the general gist but I’m trying to figure out the how each ratom knows exactly it’s watchers; e.g. how it knows when it’s been “undereferenced”
trying to read the code and think about it, it must be that the dereferencer knows to call -remove-watch
once it realizes it is no longer dereferencing the ratom
i've been running into a small bit of confusion related to the vector form of functions vs the list form. i'm map-indexed
-ing over a sequence, and inside the fn I'm let-binding some things and then calling one of two functions based on the bindings, passing the map into the function call. I had expected that I could use the vector call-form [action-div on-click action]
, but for some reason those aren't rendered, even tho the map-indexed
is wrapped in a [:div
. if I change it to the list call-form (action-div on-click action)
, it works
in the function action-div
, i'm creating a div and putting some stuff in it, no loops and nothing fancy
the important thing to remember, is you’re not “calling” the function with a vector but returning a data structure [action-div on-click action]
that reagent will call for you later
my apologies, seems the issue was between the keyboard and chair 😛