This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-15
Channels
- # aws-lambda (3)
- # beginners (17)
- # boot (65)
- # cider (3)
- # cljs-dev (7)
- # cljsrn (82)
- # clojure (82)
- # clojure-italy (1)
- # clojure-russia (25)
- # clojure-spec (56)
- # clojure-uk (5)
- # clojurescript (52)
- # css (2)
- # datomic (6)
- # emacs (1)
- # hoplon (9)
- # jobs-discuss (5)
- # leiningen (8)
- # mount (2)
- # nginx (1)
- # off-topic (2)
- # om (1)
- # om-next (9)
- # perun (13)
- # portland-or (1)
- # re-frame (13)
- # reagent (20)
- # remote-jobs (2)
- # ring (5)
- # spacemacs (1)
- # specter (10)
- # untangled (5)
- # yada (6)
@pesterhazy @emccue Thanks for the information. I did try to use a macro, but it was giving me an error (saying that environ was not found). I’m still new to Clojure, so I think there is something I’m not understanding about Clojure -> Clojurescript macros.
@pesterhazy do you have an example of the macro handy? And then how to require it in cljs?
(But it doesn’t get that far, because it throws an error about referencing environ
at runtime)
@davin, your example seems correct
it seems that nowadays it's possible to skip React's createElement completely in many cases (http://techblog.netflix.com/2017/01/crafting-high-performance-tv-user.html), returning plain JS objects from render() instead. do you think it may be useful for improving Reagent performance?
Hello. I have a "how to subscribe in a view callback" question.
I'm trying out BlueprintJS which has a nice Table component. It's virtualized so that only visible cells render which is means doing cell rendering in a callback.
My callback uses the row index to fetch data via @(subscribe [:get-row idx])
(really i use some limit/offset paging but that's the idea)
The subscribe works and shows loading.... but doesn't refresh when the data arrives.
Logically this is because the render callback happens later so reagent doesn't know the deref/sub should be watched.
Is there a way I can manually associated the deref/sub with the component in the callback? Passing this
through.