This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-29
Channels
- # announcements (10)
- # aws (4)
- # babashka (42)
- # beginners (208)
- # bristol-clojurians (2)
- # calva (13)
- # chlorine-clover (52)
- # cider (5)
- # clara (22)
- # clj-kondo (2)
- # clojars (14)
- # clojure (107)
- # clojure-europe (24)
- # clojure-nl (4)
- # clojure-uk (6)
- # clojurescript (3)
- # conjure (20)
- # cursive (23)
- # datascript (2)
- # datomic (15)
- # figwheel-main (3)
- # fulcro (23)
- # jobs (3)
- # kaocha (5)
- # keechma (3)
- # local-first-clojure (1)
- # malli (13)
- # off-topic (16)
- # planck (6)
- # re-frame (8)
- # reagent (3)
- # reitit (1)
- # releases (1)
- # remote-jobs (1)
- # rum (1)
- # sci (37)
- # shadow-cljs (16)
- # tools-deps (158)
- # vim (3)
- # xtdb (8)
I saw something in a Fulcro video or docs or something about BigDecimals not being printable to console. I think it was related to a math.cljc file, something in Fulcro RAD. I don't remember if it was just a comment or if there was a solution, like overriding a method on them or something. I'm working with them a lot now and I'm annoyed at having to call toString
or do a conversion every time I want to log one to debug something, so I'm wondering if there was a better way.
@ericihli this is in RAD’s numeric ns:
#?(:cljs
(extend-protocol IPrintWithWriter
ty/TaggedValue (-pr-writer [d writer opts]
(let [t (.-tag d)
v (.-rep d)
type (case t
"f" "bigdec"
"n" "bigint"
"tagged")]
(-write writer (str "#" type " \"" v "\""))))))
recording available for the study group earlier today: https://georgetown.zoom.us/rec/play/u5wkf-n-rDM3S93GuASDBvUsW9XuL6-shCIYr6YOmR28UiMGNVLwbrZGYrS268MVvUVM8_Ta74hmUOpr?autoplay=true&startTime=1596034548000
Is it possible to get this on YouTube? I suspect the zoom recording will expire once the cloud storage exceeds its limits
So this singleton component... depending on where I use it, I get "ui/set-props requires component to have an ident" errors.
those helpers use the mutation env to figure out the ident of the component to know where to store state
perhaps you’ve mis-written your ident? If it is a true singleton, the ident must be a lambda. Other values are “magic”
:ident [:a :b]
is shorthand for “the table will be :a, and the ID key for entities in the props is :b”, and translates to (fn [] [:a (:b props)])
The factory is (def ui-one-click-intro-form (comp/factory OneClickIntroForm))
and the components embedding it have {:introform (comp/get-query introduction-forms/OneClickIntroForm)}
in their query and use it as (introduction-forms/ui-one-click-intro-form (:introform props)}
which works fine on the component where I always did that, but on that other it fails with the mentioned error
I think it likely is because I am using the parent component as top-level component in InitialRouting and thus its props aren't properly initialized?
you don’t. It does that for you (and for its targets). You do have to compose IT with its parent
Well no, it doesn't, because it is a component inside the defrouter component, wrapping the route-factory call