This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-12
Channels
- # aleph (8)
- # announcements (9)
- # babashka (15)
- # beginners (91)
- # calva (54)
- # chlorine-clover (3)
- # cider (25)
- # clj-kondo (9)
- # cljfx (4)
- # cljsrn (12)
- # clojure (40)
- # clojure-australia (2)
- # clojure-europe (77)
- # clojure-nl (10)
- # clojure-spec (22)
- # clojure-uk (9)
- # clojurescript (39)
- # conjure (12)
- # cursive (8)
- # datascript (17)
- # datomic (22)
- # emacs (2)
- # expound (6)
- # fulcro (25)
- # kaocha (7)
- # malli (9)
- # meander (5)
- # off-topic (13)
- # pathom (8)
- # pedestal (5)
- # portal (1)
- # rdf (58)
- # re-frame (65)
- # reagent (15)
- # sci (3)
- # shadow-cljs (50)
- # test-check (6)
- # testing (3)
- # tools-deps (1)
- # vim (7)
- # xtdb (10)
I am trying to use fulcro. For generating CSS classes I use fulcro-garden-css.
I wish to create a component which generates CSS based on the props
I get following when I try to do that:
Warning :undeclared-var in com/vadelabs/foundation/components/layout.cljc at 48:40
Use of undeclared Var com.vadelabs.foundation.components.layout/props
45 |
46 | (defsc Grid
47 | [this props]
48 | {:css [[:.red (utils/use-style-props props grid-style-props)]]}
49 | (let [children (comp/children this)
50 | other-props props
51 | style-props (utils/use-style-props other-props grid-style-props)
52 | {:keys [red]} (css/get-classnames Grid)]
Any way to resolve this?I was trying to use stylefy
but I get following warning:
Getting Invalid DOM property `class`. Did you mean `className`?
as per the author of stylefy
only works with reagent.
I am not sure how performant it could be. stylefy
uses some sort of caching.
I will try to figure something out…Does anyone also have a hard time working with contentEditable = true
?
@U012ADU90SW In short, for instance, handling changes is somewhat messy and setting the value of the editable element resets the cursor. I was asking because I don't know how much of this misbehavior is due to Fulcro, React, or just is inherent to editing elements.
@UCFG3SDFV you might try synchronous transactions (comp/transact!!), they were introduced for related cursor-misbehaving issues
@fjolne.yngling Great, thanks!
hey, I'm having a weird UNSUPPORTED VALUE
for all values in Transactions & Network tabs; DB values are good; using Fulcro Inspect's latest Chrome plugin (3.0.1, released 8 days ago), Fulcro 3.4.3, no custom transit encoders set up
There was an issue with the inspect in Chrome. I had to download it manually and install it
Nope, and as far as I know Tony is actually recommending it for all new projects since it's more or less finalized in the major points (correct me if I'm wrong).
There's a few bits explicitly not handled: http://book.fulcrologic.com/RAD.html#_authorization_middleware I guess there people are falling back to normal Fulcro solutions, seems like quite a hard problem generally
I've actually started more or less using RAD form-save events for everything and I stuck some auth middle ware in there. It's working alright
right, but it does not eliminate the need to know Fulcro…it’s just good to have some bits of it as a nice starting point
digging into the fulcro rad book first and then will probably read relevant sections of the full book as they come up
so, let me clarify: I recommend including RAD as dependency. You will have to know Fulcro first in order to really be able to do much in terms of building a real app, since you still have to make a container app for any RAD element….but the RAD demo gives you a decent starting point layout for the project.