This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-25
Channels
- # beginners (33)
- # cider (40)
- # clara (28)
- # cljs-dev (38)
- # cljsrn (5)
- # clojure (197)
- # clojure-greece (1)
- # clojure-italy (7)
- # clojure-losangeles (1)
- # clojure-nl (10)
- # clojure-spec (32)
- # clojure-uk (154)
- # clojurescript (48)
- # core-async (33)
- # cursive (32)
- # datomic (19)
- # duct (1)
- # fulcro (10)
- # graphql (6)
- # jobs (1)
- # lumo (1)
- # mount (6)
- # off-topic (48)
- # onyx (12)
- # other-languages (2)
- # re-frame (77)
- # reagent (19)
- # reitit (4)
- # ring (5)
- # ring-swagger (18)
- # rum (4)
- # shadow-cljs (52)
- # specter (12)
- # tools-deps (47)
@curlyfry my data just have tow level, but it show errors :Uncaught RangeError: Maximum call stack size exceeded
I find the error đŸ™‚ thank you @jiyinyiyong
Hey! I tried {:style {:display :flex}}
instead of {:style {:display "flex"}}
and to my surprise - it worked! Is there a part of documentation where it is described?
@troglotit maybe it happens here: https://github.com/reagent-project/reagent/blob/9f2b492ff884a3068b3d03f63f8157259bf49ded/src/reagent/impl/template.cljs#L67
it's essentially like clj->js right?
@pesterhazy Yes, with additional transformations like snake-case to camelCase for maps and named (symbols and keywords) to strings
Hmm, the ifn?
case is interesting, I think that the additional fn
is unnecessary for real functions (as they are already JS functions), but could be required for some ifn
If I had proper performance tests I'd also consider rewriting this into protocol as that should be faster than cond
FYI: I saw this on redit… https://learnreagent.com/
@bherrmann I'll share coupon/affiliate link here and on Reagent readme when it launches đŸ™‚
@juhoteperi good point about the protocol
I didn't know that reagent wrapped each function in another anon fn
maybe that's necessary for partial
s and things like that
or its less well-known cousin, r/partial
https://github.com/reagent-project/reagent/blob/bc922f73190401da427c6961d05a4ee5476fefbd/src/reagent/core.cljs#L351