This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-13
Channels
- # admin-announcements (1)
- # announcements (40)
- # aws (2)
- # babashka (46)
- # babashka-sci-dev (106)
- # beginners (31)
- # cider (5)
- # circleci (2)
- # clj-kondo (48)
- # clojure (118)
- # clojure-belgium (1)
- # clojure-chicago (3)
- # clojure-europe (19)
- # clojure-ireland (3)
- # clojure-losangeles (2)
- # clojure-nl (2)
- # clojure-spec (10)
- # clojure-uk (4)
- # clojurescript (18)
- # community-development (5)
- # core-async (159)
- # cursive (16)
- # datomic (16)
- # etaoin (1)
- # fulcro (21)
- # funcool (14)
- # graalvm (5)
- # gratitude (4)
- # holy-lambda (28)
- # jobs (1)
- # jobs-discuss (1)
- # kaocha (1)
- # lsp (12)
- # malli (21)
- # meander (12)
- # music (1)
- # off-topic (8)
- # portal (5)
- # react (18)
- # reitit (1)
- # releases (4)
- # remote-jobs (1)
- # shadow-cljs (56)
- # timbre (4)
Is there anywhere I can see an example of a RAD report for an individual item rather than a list of items? It sounds like appropriate use of reports given the general description (params, query, UI), but the semantics of the report-options and all the examples are geared towards lists of things. Is a case where it's better to drop down to just a simple defsc instead of defsc-report, or is there a way to use RAD reports for individual items?
My reasoning was that a read-only form is a view of a single item, and you need an ID a the list of things you want to see, and you want to lay them out.
you can create custom resolvers to create virtual attributes, which can be displayed in such a form
You suggest leaning towards a RO form over a plain defsc? I guess using a RAD form just helps stick to the RAD approach over dropping down to Fulcro?
> As you can see there is some overlap in forms and reports. A read-only form is very much like a report, and a report with sufficient "row actions" (i.e. each cell can be clicked to edit) can behave very much like a form. Makes sense then. I've been avoiding RAD forms because I'm not intending to collect any input, but I know there have been many form improvements made recently, so why not. Thanks @tony.kay.
The only downside of using a RO form is that I have not, myself, needed to do that, so some of the SUI plugin controls might have bugs or not look great. PRs welcome.
Hi! I am using HOC and I am getting an error “React is not defined”. This occurred after I started using HOC components. Any suggestions?
that isn’t defined when using shadow, you have to require it ["react" :as react]
then use react/whatever
I used to use cljsjs react, which just brought in the global. I don’t do that anymore.